mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
(display_backtrace_file_and_line): Only use scm_basename when POSIX
support is compiled in. Thanks to Chris Cramer.
This commit is contained in:
parent
311f67823d
commit
4110fa69b0
1 changed files with 4 additions and 0 deletions
|
@ -499,8 +499,12 @@ display_backtrace_file_and_line (SCM frame, SCM port, scm_print_state *pstate)
|
|||
else
|
||||
{
|
||||
pstate -> writingp = 0;
|
||||
#ifdef HAVE_POSIX
|
||||
scm_iprin1 (SCM_STRINGP (file) ? scm_basename (file, SCM_UNDEFINED) : file,
|
||||
port, pstate);
|
||||
#else
|
||||
scm_iprin1 (file, port, pstate);
|
||||
#endif
|
||||
pstate -> writingp = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue