`debug' prints the value of the function being called

This commit is contained in:
Sam Tobin-Hochstadt 2010-05-12 17:04:18 -04:00
parent e0c82c8ac6
commit bc7bd9245e

View File

@ -6,7 +6,7 @@
(define-syntax debug
(syntax-rules ()
[(_ (f . args))
(begin (printf "starting ~a~n" 'f)
(begin (printf "starting ~a (~a)~n" 'f f)
(let ([l (list . args)])
(printf "arguments are:~n")
(for/list ([arg 'args]