1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 19:50:24 +02:00

* throw.c (handler_message): Display backtrace if backtraces

enabled.
This commit is contained in:
Mikael Djurfeldt 1999-10-08 10:46:26 +00:00
parent e8ff464811
commit 8569180634

View file

@ -466,6 +466,12 @@ handler_message (void *handler_data, SCM tag, SCM args)
SCM parts = SCM_CADDR (args); SCM parts = SCM_CADDR (args);
SCM rest = SCM_CDDDR (args); SCM rest = SCM_CDDDR (args);
if (SCM_BACKTRACE_P && SCM_NFALSEP (stack))
{
scm_puts ("Backtrace:\n", p);
scm_display_backtrace (stack, p, SCM_UNDEFINED, SCM_UNDEFINED);
scm_newline (p);
}
scm_display_error (stack, p, subr, message, parts, rest); scm_display_error (stack, p, subr, message, parts, rest);
} }
else else