diff options
| author | Paul Buetow <paul@buetow.org> | 2008-10-20 18:36:28 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-10-20 18:36:28 +0000 |
| commit | 1956010ec79fbab604efc2b60d0af325e91f67b8 (patch) | |
| tree | 81b68e7ed20368d482fdbfe0e65a884958410543 /src/core/garbage.h | |
| parent | 3d7b35bb37c066489546751e100c2c2b823ccba3 (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.h | 7 |
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); |
