|
CX Framework
Cross-platform C utility framework
|
Macros | |
| #define | XA_Align(exp) ((unsigned int)(exp & XA_LG_ALIGN_MASK)) |
| #define | XA_Zero ((unsigned int)0x0040) |
| Zero-fills returned memory. | |
| #define | XA_Opt XA_Optional(High) |
Flags that can be combined and passed to allocation functions to control behavior.
| #define XA_Align | ( | exp | ) | ((unsigned int)(exp & XA_LG_ALIGN_MASK)) |
| #define XA_Opt XA_Optional(High) |
Allows the function to fail and return NULL rather than triggering an out-of-memory assertion. Recommended but not required if using XA_Align.
May be invoked as XA_Optional(High|Low|None) to inform the allocator how hard it should try to find memory if there is none available. The default if not specified is High.