Go to the source code of this file.
|
struct | stdalloc |
| An allocator for the standard allocator, which only has global state,. More...
|
◆ calloc()
void * calloc |
( |
stdalloc * | DEBUG_UNUSEDself, |
|
|
size_t | count, |
|
|
size_t | size ) |
|
static |
Definition at line 37 of file std.h.
37 {
40}
static void * calloc(stdalloc *DEBUG_UNUSED(self), size_t count, size_t size)
#define DEBUG_ASSERT(expr)
static INDEX_TYPE size(SELF const *self)
◆ free()
void free |
( |
stdalloc * | DEBUG_UNUSEDself, |
|
|
void * | ptr ) |
|
static |
Definition at line 42 of file std.h.
42 {
46}
static void free(stdalloc *DEBUG_UNUSED(self), void *ptr)
◆ get()
Definition at line 19 of file std.h.
19 {
21 return &instance;
22}
An allocator for the standard allocator, which only has global state,.
◆ malloc()
void * malloc |
( |
stdalloc * | DEBUG_UNUSEDself, |
|
|
size_t | size ) |
|
static |
Definition at line 24 of file std.h.
24 {
27}
static void * malloc(stdalloc *DEBUG_UNUSED(self), size_t size)
◆ realloc()
void * realloc |
( |
stdalloc * | DEBUG_UNUSEDself, |
|
|
void * | ptr, |
|
|
size_t | size ) |
|
static |
Definition at line 29 of file std.h.
29 {
31 if (ptr) {
33 }
35}
static void * malloc(SELF *self, size_t size)
static void * realloc(stdalloc *DEBUG_UNUSED(self), void *ptr, size_t size)