#include <derive-c/core.h>
#include <derive-c/panic.h>
#include <stdlib.h>
Go to the source code of this file.
|
struct | nullalloc |
| An allocator for the standard allocator, which only has global state,. More...
|
◆ calloc()
void * calloc |
( |
nullalloc * | DEBUG_UNUSEDself, |
|
|
size_t | UNUSEDcount, |
|
|
size_t | UNUSEDsize ) |
|
static |
Definition at line 34 of file null.h.
35 {
37 return NULL;
38}
#define DEBUG_ASSERT(expr)
◆ free()
void free |
( |
nullalloc * | DEBUG_UNUSEDself, |
|
|
void * | UNUSEDptr ) |
|
static |
Definition at line 40 of file null.h.
40 {
42 PANIC(
"Not possible to free memory from the null allocator, as it allocates nothing")
43}
◆ get()
Definition at line 20 of file null.h.
An allocator for the standard allocator, which only has global state,.
◆ malloc()
void * malloc |
( |
nullalloc * | DEBUG_UNUSEDself, |
|
|
size_t | UNUSEDsize ) |
|
static |
◆ realloc()
void * realloc |
( |
nullalloc * | DEBUG_UNUSEDself, |
|
|
void * | DEBUG_UNUSEDptr, |
|
|
size_t | UNUSEDsize ) |
|
static |