summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-11-30 14:15:28 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-11-30 14:15:28 -0800
commitb3ee9cdddd521d0ee87a114269fc683f93d215e0 (patch)
tree721cd2d5fb677efde0dd9349b29a54bb31409739 /lib.h
parent42eb490febc7633ed162289921ce997ea4e35d18 (diff)
downloadtxr-b3ee9cdddd521d0ee87a114269fc683f93d215e0.tar.gz
txr-b3ee9cdddd521d0ee87a114269fc683f93d215e0.tar.bz2
txr-b3ee9cdddd521d0ee87a114269fc683f93d215e0.zip
* configure (extra_debugging): New variable. EXTRA_DEBUGGING
conditionally generated in config.h. * gc.c (break_obj): New static variable. (mark_obj): Debugging feature: if the object is the one stored in break_obj and not yet reached, then call breakpt. (deheap): New debugging function for viewing regions of the heaps. * lib.c (breakpt): New function. * lib.h (breakpt): Declared.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 732c5eb8..47cb414e 100644
--- a/lib.h
+++ b/lib.h
@@ -495,6 +495,7 @@ void init(const wchar_t *progname, mem_t *(*oom_realloc)(mem_t *, size_t),
val *stack_bottom);
void dump(val obj, val stream);
void d(val obj);
+void breakpt(void);
#define nil ((obj_t *) 0)