racket/collects/honu/private/debug.rkt
2010-04-27 16:50:15 -06:00

15 lines
237 B
Racket

#lang scheme/base
(require (for-syntax scheme/base))
(provide debug)
(define-for-syntax verbose? #t)
(define-syntax (debug stx)
(if verbose?
(syntax-case stx ()
[(_ str x ...)
#'(printf str x ...)])
#'(void)))