gcc/boehm-gc/include/leak_detector.h

8 lines
207 B
C
Raw Normal View History

1999-11-02 04:48:50 +08:00
#define GC_DEBUG
#include "gc.h"
#define malloc(n) GC_MALLOC(n)
#define calloc(m,n) GC_MALLOC((m)*(n))
1999-11-02 04:48:50 +08:00
#define free(p) GC_FREE(p)
#define realloc(p,n) GC_REALLOC((p),(n))
1999-11-02 04:48:50 +08:00
#define CHECK_LEAKS() GC_gcollect()