13static stdalloc*
NS(stdalloc,
get)() {
14 static stdalloc instance = {};
23static void*
NS(stdalloc,
realloc)(stdalloc* self,
void* ptr,
size_t size) {
31static void*
NS(stdalloc,
calloc)(stdalloc* self,
size_t count,
size_t size) {
36static void NS(stdalloc,
free)(stdalloc* self,
void* ptr) {
static void free(SELF *self, void *ptr)
static void * realloc(SELF *self, void *ptr, size_t size)
static void * malloc(SELF *self, size_t size)
static void * calloc(SELF *self, size_t count, size_t size)
static void * calloc(stdalloc *self, size_t count, size_t size)
static void free(stdalloc *self, void *ptr)
static void * realloc(stdalloc *self, void *ptr, size_t size)
static void * malloc(stdalloc *self, size_t size)
#define TRAIT_ALLOC(SELF)
static INDEX_TYPE size(SELF const *self)
#define ZERO_SIZED(TYPE)
Zero sized types are useful as markers (e.g. for gdb printing, or to replace debug info structs.