PageRenderTime 85ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/libs/headers/gc/leak_detector.h

http://github.com/nddrylliog/ooc
C++ Header | 9 lines | 9 code | 0 blank | 0 comment | 0 complexity | 12922ac3e326e9fad892f06eb053dcf5 MD5 | raw file
1#define GC_DEBUG
2#include "gc.h"
3#define malloc(n) GC_MALLOC(n)
4#define calloc(m,n) GC_MALLOC((m)*(n))
5#define free(p) GC_FREE(p)
6#define realloc(p,n) GC_REALLOC((p),(n))
7#undef strdup
8#define strdup(s) GC_STRDUP((s))
9#define CHECK_LEAKS() GC_gcollect()