summaryrefslogtreecommitdiff
path: root/include/leak_detector.h
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-07-26 15:31:21 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 15:31:21 +0400
commite955362cfcef47fdc3ad2140f50ea4638fd86a4d (patch)
tree07b9d240b8bc1a7be60cc79c1ce1e43866e2b4a7 /include/leak_detector.h
parentc63ec8250de446bca83601966c918d37ad120a83 (diff)
downloadbdwgc-e955362cfcef47fdc3ad2140f50ea4638fd86a4d.tar.gz
gc5.0alpha3 tarball importgc5_0alpha3
Diffstat (limited to 'include/leak_detector.h')
-rw-r--r--include/leak_detector.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/leak_detector.h b/include/leak_detector.h
new file mode 100644
index 00000000..6786825a
--- /dev/null
+++ b/include/leak_detector.h
@@ -0,0 +1,7 @@
+#define GC_DEBUG
+#include "gc.h"
+#define malloc(n) GC_MALLOC(n)
+#define calloc(m,n) GC_MALLOC(m*n)
+#define free(p) GC_FREE(p)
+#define realloc(p,n) GC_REALLOC(n)
+#define CHECK_LEAKS() GC_gcollect()