diff options
author | Keith Packard <keithp@keithp.com> | 2016-11-17 16:06:05 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-02-20 11:16:51 -0800 |
commit | 84732aebd10c293101727ba567bfc733dc30efca (patch) | |
tree | c38d55d2ea9d7ec30de0e173ae4b6cfdff2ec351 /src/lisp/ao_lisp_error.c | |
parent | 05ac336ea954c0f5eefabdefb0c8c5747be3fd32 (diff) |
altos/lisp: Dump globals on error
Useful for debugging
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_error.c')
-rw-r--r-- | src/lisp/ao_lisp_error.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lisp/ao_lisp_error.c b/src/lisp/ao_lisp_error.c index 2b15c418..7ad7b2b5 100644 --- a/src/lisp/ao_lisp_error.c +++ b/src/lisp/ao_lisp_error.c @@ -106,5 +106,8 @@ ao_lisp_error(int error, char *format, ...) va_end(args); printf("\n"); ao_lisp_stack_print(); + printf("Globals:\n\t"); + ao_lisp_frame_print(ao_lisp_frame_poly(ao_lisp_frame_global)); + printf("\n"); return AO_LISP_NIL; } |