APEMoST
|
#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 FREEMSG | ( | x | ) | IFSEGV dump_p("about to free", (void*)x); |
Enabling the garbage collector
#define mem_calloc | ( | n, | |
x | |||
) | calloc(n, x) |
Referenced by mcmc_init(), mcmc_open_dump_files(), my_strdup(), run_sampler(), and setup_chains().
#define mem_free | ( | x | ) | { FREEMSG(x); free((void*)x); } |
Referenced by calibrate_rest(), mcmc_dump_close(), mcmc_free(), mcmc_open_dump_files(), and prepare_and_run_sampler().
#define mem_malloc | ( | x | ) | malloc(x) |
Referenced by calibrate_rest(), main(), mcmc_init(), and setup_chains().
#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.