diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:27 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:27 -0800 |
commit | fa3f23105ddcf07c5900de47f19af43d1db1b597 (patch) | |
tree | b2c6cce6b97698098f50cbc78c23fdc0f8d401ab /trace.scm | |
parent | f24b9140d6f74804d5599ec225717d38ca443813 (diff) | |
download | slib-fa3f23105ddcf07c5900de47f19af43d1db1b597.tar.gz slib-fa3f23105ddcf07c5900de47f19af43d1db1b597.zip |
Import Upstream version 2c3upstream/2c3
Diffstat (limited to 'trace.scm')
-rw-r--r-- | trace.scm | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -40,9 +40,9 @@ (else (do ((i debug:indent (+ -1 i))) ((zero? i)) (display #\ )) (apply qpn CALL name args) - (set! debug:indent (modulo (+ 1 debug:indent) 8)) + (set! debug:indent (modulo (+ 1 debug:indent) 16)) (let ((ans (apply function args))) - (set! debug:indent (modulo (+ -1 debug:indent) 8)) + (set! debug:indent (modulo (+ -1 debug:indent) 16)) (do ((i debug:indent (+ -1 i))) ((zero? i)) (display #\ )) (qpn RETN name ans) ans)))))))) @@ -96,7 +96,8 @@ (defmacro trace xs (if (null? xs) - `(begin ,@(map (lambda (x) `(set! ,x (trace:tracef ,x ',x))) + `(begin (set! debug:indent 0) + ,@(map (lambda (x) `(set! ,x (trace:tracef ,x ',x))) (map car *traced-procedures*)) (map car *traced-procedures*)) `(begin ,@(map (lambda (x) `(set! ,x (trace:tracef ,x ',x))) xs)))) |