summaryrefslogtreecommitdiff
path: root/src/core/garbage.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-10-20 18:36:28 +0000
committerPaul Buetow <paul@buetow.org>2008-10-20 18:36:28 +0000
commit1956010ec79fbab604efc2b60d0af325e91f67b8 (patch)
tree81b68e7ed20368d482fdbfe0e65a884958410543 /src/core/garbage.h
parent3d7b35bb37c066489546751e100c2c2b823ccba3 (diff)
Improved GC debugging.
Debugging printings now labeled with DEBUG::$NAME::$ETC::..:
Diffstat (limited to 'src/core/garbage.h')
-rw-r--r--src/core/garbage.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/garbage.h b/src/core/garbage.h
index 8a8a820..0855b65 100644
--- a/src/core/garbage.h
+++ b/src/core/garbage.h
@@ -47,7 +47,12 @@ void garbage_init();
void garbage_destroy();
int garbage_collect();
void garbage_add(void *p, GarbageType type);
-void garbage_add2(void *p, void (*p_func)(void*), int *p_ref_count,
+void garbage_add2(void *p, void (*p_func)(void*),
+ int *p_ref_count,
+ GarbageType type);
+void garbage_add3(void *p, void (*p_func)(void*),
+ void (*p_print)(void*),
+ int *p_ref_count,
GarbageType type);
void garbage_add_token(Token *p_token);