mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-20 02:30:23 +02:00
(error-catching-repl): Call the E
("eval'er") procedure via call-with-values and call the P ("printer") for each produced value. Thanks to Matthias Köppe!
This commit is contained in:
parent
cf46055fc3
commit
5f89fb1313
1 changed files with 4 additions and 1 deletions
|
@ -2375,7 +2375,10 @@
|
|||
;; (display "No backtrace available.\n")))
|
||||
|
||||
(define (error-catching-repl r e p)
|
||||
(error-catching-loop (lambda () (p (e (r))))))
|
||||
(error-catching-loop
|
||||
(lambda ()
|
||||
(call-with-values (lambda () (e (r)))
|
||||
(lambda the-values (for-each p the-values))))))
|
||||
|
||||
(define (gc-run-time)
|
||||
(cdr (assq 'gc-time-taken (gc-stats))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue