add report-apply

pull/2/head
Matthew Butterick 10 years ago
parent 8a02b53ac2
commit 0b76ee25ae

@ -11,6 +11,20 @@
(displayln (format "~a = ~v" 'name expr) (current-error-port))
expr)]))
(define-syntax-rule (report-apply proc expr)
(begin
(report (apply proc expr))
expr))
#|
(define-syntax (verbalize stx)
(syntax-case stx ()
[(_ proc args ...)
(with-syntax ([proc-input (format-id stx "args to ~a" #'proc)])
#'(begin
(let () (report (list args ...) proc-input) (void))
(report (proc args ...))))]))
|#
(define-syntax (report* stx)
(syntax-case stx ()

Loading…
Cancel
Save