libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
Go to the source code of this file.
Data Structures | |
struct | GblScopeAllocator |
Macros | |
#define | GblScopeAllocator_alloc(...) |
#define | GblScopeAllocator_pushDtor(...) |
#define | GblScopeAllocator_allocDefault_(...) |
#define | GblScopeAllocator_allocDefault__(self, size, align, dtor, ...) |
#define | GblScopeAllocator_pushDtorDefault_(...) |
#define | GblScopeAllocator_pushDtorDefault__(self, dtor, data, ...) |
Typedefs | |
typedef GBL_RESULT(* | GblScopeAllocatorDtorFn) (void *pPtr) |
Functions | |
GblScopeAllocator * | GblScopeAllocator_create (GblArenaAllocator *pArena) |
GBL_RESULT | GblScopeAllocator_construct (GblScopeAllocator *pSelf, GblArenaAllocator *pArena) |
GBL_RESULT | GblScopeAllocator_destroy (GblScopeAllocator *pSelf) |
GBL_RESULT | GblScopeAllocator_destruct (GblScopeAllocator *pSelf) |
void * | GblScopeAllocator_alloc (GblScopeAllocator *pSelf, size_t size, size_t align, GblScopeAllocatorDtorFn pFnDtor) |
GBL_RESULT | GblScopeAllocator_pushDtor (GblScopeAllocator *pSelf, GblScopeAllocatorDtorFn pFnDtor, void *pData) |
size_t | GblScopeAllocator_dtorCount (const GblScopeAllocator *pSelf) |
GblScopeAllocator stack-like arena sub allocator.
Arena-backed scope-based allocator.
Definition in file gimbal_scope_allocator.h.
#define GblScopeAllocator_alloc | ( | ... | ) |
Definition at line 48 of file gimbal_scope_allocator.h.
#define GblScopeAllocator_pushDtor | ( | ... | ) |
Definition at line 49 of file gimbal_scope_allocator.h.
#define GblScopeAllocator_allocDefault_ | ( | ... | ) |
Definition at line 52 of file gimbal_scope_allocator.h.
#define GblScopeAllocator_allocDefault__ | ( | self, | |
size, | |||
align, | |||
dtor, | |||
... | |||
) |
Definition at line 54 of file gimbal_scope_allocator.h.
#define GblScopeAllocator_pushDtorDefault_ | ( | ... | ) |
Definition at line 57 of file gimbal_scope_allocator.h.
#define GblScopeAllocator_pushDtorDefault__ | ( | self, | |
dtor, | |||
data, | |||
... | |||
) |
Definition at line 59 of file gimbal_scope_allocator.h.
typedef GBL_RESULT(* GblScopeAllocatorDtorFn) (void *pPtr) |
Definition at line 18 of file gimbal_scope_allocator.h.