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:
parent
e8ff464811
commit
8569180634
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue