Back to index

plt-scheme  4.2.1
leak_detector.h
Go to the documentation of this file.
00001 #define GC_DEBUG
00002 #include "gc.h"
00003 #define malloc(n) GC_MALLOC(n)
00004 #define calloc(m,n) GC_MALLOC((m)*(n))
00005 #define free(p) GC_FREE(p)
00006 #define realloc(p,n) GC_REALLOC((p),(n))
00007 #undef strdup
00008 #define strdup(s) GC_STRDUP((s))
00009 #define CHECK_LEAKS() GC_gcollect()