-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patht_gc.h
More file actions
18 lines (16 loc) · 738 Bytes
/
t_gc.h
File metadata and controls
18 lines (16 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __T_GC__
#define __T_GC__
#ifdef PROF
# define GC_INIT() 0
# define GC_MALLOC(s) malloc(s)
# define GC_MALLOC_ATOMIC(s) malloc(s)
# define GC_REALLOC(d,s) realloc(d,s)
# define GC_register_finalizer(o,f,c,x,y) 0
# define GC_register_finalizer_ignore_self(o,f,c,x,y) 0
# define GC_register_finalizer_no_order(o,f,c,x,y) 0
# define GC_add_roots(s,e) 0
# define GC_remove_roots(d1,d2) 0
#else
# include <gc.h>
#endif /* PROF */
#endif /* __T_GC__ */