pass backtraces through the compiler
authorAndy Wingo <wingo@pobox.com>
Fri, 31 Oct 2008 12:28:06 +0000 (13:28 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 31 Oct 2008 12:28:06 +0000 (13:28 +0100)
commit03fa04dfe13512d37e0f19ffd0e6c7f5db8f466f
tree7bdef93f2ff16c2e8abb2aaa2228d85cf919c53a
parent46ccd0bbf919b8b501355e0452deaee123057239
pass backtraces through the compiler

* module/system/base/compile.scm (call-with-nonlocal-exit-protect): New
  helper, like unwind-protect but only for nonlocal exits.
  (call-with-output-file/atomic): Use call-with-nonlocal-exit-protect so
  that we don't mess up backtraces by catching all and then rethrowing.
  Should fix this more comprehensively somewhere, though.
module/system/base/compile.scm