CARB_REQUIRE_LINKED

Defined in carb/Memory.h

CARB_REQUIRE_LINKED

Changes how the carbReallocate symbol is acquired.

If CARB_REQUIRE_LINKED is defined as 1 before this file is included, then carbReallocate will be imported from carb.dll or libcarb.so and the binary must link against the import library for the module. This can be useful For applications that want to use carb::allocate() prior to initializing the framework.

If not defined or defined at 0, carbReallocate is weakly-linked and the binary need not link against the import library. Attempting to call carb::allocate() will dynamically attempt to find carbReallocate() in the already- loaded carb module. If it cannot be found a warning will be thrown.