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, thencarbReallocate
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 usecarb::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 callcarb::allocate()
will dynamically attempt to findcarbReallocate()
in the already- loaded carb module. If it cannot be found a warning will be thrown.