peval: refactor logging
authorAndy Wingo <wingo@pobox.com>
Mon, 10 Oct 2011 10:03:17 +0000 (12:03 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 10 Oct 2011 11:23:32 +0000 (13:23 +0200)
* module/language/tree-il/peval.scm: Make it easier to turn on logging.

module/language/tree-il/peval.scm

index 8246e47..87d2f70 100644 (file)
 
 ;; First, some helpers.
 ;;
+(define-syntax *logging* (identifier-syntax #f))
+
 ;; For efficiency we define *logging* to inline to #f, so that the call
-;; to log* gets optimized out.  If you want to log, do:
+;; to log* gets optimized out.  If you want to log, uncomment these
+;; lines:
 ;;
-;;   (define %logging #f)
-;;   (define-syntax *logging* (identifier-syntax %logging)
+;; (define %logging #f)
+;; (define-syntax *logging* (identifier-syntax %logging))
 ;;
 ;; Then you can change %logging at runtime.
-;;
-(define-syntax *logging* (identifier-syntax #f))
 
 (define-syntax log
   (syntax-rules (quote)