aboutsummaryrefslogblamecommitdiffstats
path: root/gc/include/leak_detector.h
blob: 0674ab4d09f6d1db7bc625b058145186cee75df6 (plain) (tree)
1
2
3
4
5
6
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((p),(n))
#define CHECK_LEAKS() GC_gcollect()