|
CX Framework
Cross-platform C utility framework
|
Standard C malloc/free compatible interface for use with third-party libraries.
Normally the compatibility interface uses optional allocations to emulate the behavior of malloc() returning NULL when out of memory. Some applications may not wish to do that and would rather assert and/or install an XA_Fatal handler.
These applications can define XALLOC_COMPAT_REQUIRE before including xalloc.h to force the interface to use required allocations instead.