src/cx/allocator.h

changeset 1319
aa1f580f8f59
parent 1318
12fa1d37fe48
equal deleted inserted replaced
1318:12fa1d37fe48 1319:aa1f580f8f59
427 const CxAllocator *allocator, 427 const CxAllocator *allocator,
428 size_t nmemb, 428 size_t nmemb,
429 size_t size 429 size_t size
430 ); 430 );
431 431
432
433
434 /**
435 * Convenience macro that invokes cxMalloc() with the cxDefaultAllocator.
436 */
437 #define cxMallocDefault(...) cxMalloc(cxDefaultAllocator, __VA_ARGS__)
438 /**
439 * Convenience macro that invokes cxCalloc() with the cxDefaultAllocator.
440 */
441 #define cxCallocDefault(...) cxCalloc(cxDefaultAllocator, __VA_ARGS__)
442 /**
443 * Convenience macro that invokes cxRealloc() with the cxDefaultAllocator.
444 */
445 #define cxReallocDefault(...) cxRealloc(cxDefaultAllocator, __VA_ARGS__)
446 /**
447 * Convenience macro that invokes cxReallocate() with the cxDefaultAllocator.
448 */
449 #define cxReallocateDefault(...) cxReallocate(cxDefaultAllocator, __VA_ARGS__)
450 /**
451 * Convenience macro that invokes cxReallocateArray() with the cxDefaultAllocator.
452 */
453 #define cxReallocateArrayDefault(...) cxReallocateArray(cxDefaultAllocator, __VA_ARGS__)
454 /**
455 * Convenience macro that invokes cxReallocArray() with the cxDefaultAllocator.
456 */
457 #define cxReallocArrayDefault(...) cxReallocArray(cxDefaultAllocator, __VA_ARGS__)
458 /**
459 * Convenience macro that invokes cxFree() with the cxDefaultAllocator.
460 */
461 #define cxFreeDefault(...) cxFree(cxDefaultAllocator, __VA_ARGS__)
462
432 #ifdef __cplusplus 463 #ifdef __cplusplus
433 } // extern "C" 464 } // extern "C"
434 #endif 465 #endif
435 466
436 #endif // UCX_ALLOCATOR_H 467 #endif // UCX_ALLOCATOR_H

mercurial