Go to the source code of this file.
|
#define | TidyAlloc(allocator, size) ((allocator)->vtbl->alloc((allocator), (size))) |
| Wrappers for easy memory allocation using an allocator. More...
|
|
#define | TidyClearMemory(block, size) memset((block), 0, (size)) |
|
#define | TidyFree(allocator, block) ((allocator)->vtbl->free((allocator), (block))) |
|
#define | TidyPanic(allocator, msg) ((allocator)->vtbl->panic((allocator), (msg))) |
|
#define | TidyRealloc(allocator, block, size) ((allocator)->vtbl->realloc((allocator), (block), (size))) |
|
#define | TY_(str) TYDYAPPEND(prvTidy,str) |
|
#define | TY_PRIVATE __attribute__((__visibility__("hidden"))) |
|
#define | TYDYAPPEND(str1, str2) str1##str2 |
|
◆ TidyAlloc
#define TidyAlloc |
( |
|
allocator, |
|
|
|
size |
|
) |
| ((allocator)->vtbl->alloc((allocator), (size))) |
Wrappers for easy memory allocation using an allocator.
◆ TidyClearMemory
#define TidyClearMemory |
( |
|
block, |
|
|
|
size |
|
) |
| memset((block), 0, (size)) |
◆ TidyFree
#define TidyFree |
( |
|
allocator, |
|
|
|
block |
|
) |
| ((allocator)->vtbl->free((allocator), (block))) |
◆ TidyPanic
#define TidyPanic |
( |
|
allocator, |
|
|
|
msg |
|
) |
| ((allocator)->vtbl->panic((allocator), (msg))) |
◆ TidyRealloc
#define TidyRealloc |
( |
|
allocator, |
|
|
|
block, |
|
|
|
size |
|
) |
| ((allocator)->vtbl->realloc((allocator), (block), (size))) |
◆ TY_
◆ TY_PRIVATE
#define TY_PRIVATE __attribute__((__visibility__("hidden"))) |
◆ TYDYAPPEND
#define TYDYAPPEND |
( |
|
str1, |
|
|
|
str2 |
|
) |
| str1##str2 |
◆ TY_❪g_default_allocator❫