mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
quote expr in unnamed time macro
The time was still reported correctly, but took longer and had the wrong name. Fixes issue #288.
This commit is contained in:
parent
344680f3b2
commit
fdc0396962
1 changed files with 1 additions and 1 deletions
|
@ -39,6 +39,6 @@
|
||||||
(define-syntax time
|
(define-syntax time
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
((time expr)
|
((time expr)
|
||||||
(time (call-with-output-string (lambda (out) (write expr out))) expr))
|
(time (call-with-output-string (lambda (out) (write 'expr out))) expr))
|
||||||
((time name expr)
|
((time name expr)
|
||||||
(time* name (lambda () expr)))))))
|
(time* name (lambda () expr)))))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue