diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:06:40 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:06:40 -0800 |
commit | a69c9fb665459e2bfdbda1bf80741a0af31a7faf (patch) | |
tree | f0bc974f8805049e6b9a4e6864886298fbaa05a4 /trace.scm | |
parent | 4684239efa63dc1b2c1cbe37ef7d3062029f5532 (diff) | |
download | slib-a69c9fb665459e2bfdbda1bf80741a0af31a7faf.tar.gz slib-a69c9fb665459e2bfdbda1bf80741a0af31a7faf.zip |
New upstream version 3b5upstream/3b5upstream
Diffstat (limited to 'trace.scm')
-rwxr-xr-x[-rw-r--r--] | trace.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/trace.scm b/trace.scm index 690836c..9ac13fe 100644..100755 --- a/trace.scm +++ b/trace.scm @@ -18,6 +18,7 @@ ;each case. (require 'qp) ;for the qp printer. +(require 'multiarg-apply) (require 'alist) (define trace:indent 0) @@ -73,9 +74,9 @@ (cons (list 1 name) debug:call-stack))) (do ((i trace:indent (+ -1 i))) ((zero? i)) (display #\space)) (apply qpn CALL name args) - (set! trace:indent (modulo (+ 1 trace:indent) 16)) + (set! trace:indent (modulo (+ 2 trace:indent) 31)) (let ((ans (apply function args))) - (set! trace:indent (modulo (+ -1 trace:indent) 16)) + (set! trace:indent (modulo (+ -2 trace:indent) 31)) (do ((i trace:indent (+ -1 i))) ((zero? i)) (display #\space)) (qpn RETN name ans) (set! debug:call-stack cs) |