#include <derive-c/core.h>
#include <derive-c/panic.h>
#include <stdlib.h>
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 36 of file std.h.
36 {
39}
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 41 of file std.h.
41 {
45}
static void free(stdalloc *DEBUG_UNUSED(self), void *ptr)
◆ get()
Definition at line 20 of file std.h.
20 {
22 return &instance;
23}
An allocator for the standard allocator, which only has global state,.
◆ malloc()
void * malloc |
( |
stdalloc * | DEBUG_UNUSEDself, |
|
|
size_t | size ) |
|
static |
Definition at line 25 of file std.h.
25 {
28}
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 30 of file std.h.
30 {
34}
static void * realloc(stdalloc *DEBUG_UNUSED(self), void *ptr, size_t size)