APEMoST
Defines

src/memory.h File Reference

#include "debug.h"

Go to the source code of this file.

Defines

#define FREEMSG(x)   IFSEGV dump_p("about to free", (void*)x);
#define WITHOUT_GARBAGE_COLLECTOR
#define mem_malloc(x)   malloc(x)
#define mem_calloc(n, x)   calloc(n, x)
#define mem_realloc(p, x)   realloc(p,x)
#define mem_free(x)   { FREEMSG(x); free((void*)x); }

Define Documentation

#define FREEMSG (   x)    IFSEGV dump_p("about to free", (void*)x);

Enabling the garbage collector

#define mem_calloc (   n,
 
)    calloc(n, x)
#define mem_free (   x)    { FREEMSG(x); free((void*)x); }
#define mem_malloc (   x)    malloc(x)
#define mem_realloc (   p,
 
)    realloc(p,x)
#define WITHOUT_GARBAGE_COLLECTOR

The garbage collector (boehmgc) is enabled by default, but is not required. This disables it.

You may also want to remove the -lgc flag.