mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
allow nil for clog-obj on with-clog-debugger
This commit is contained in:
parent
977364eff2
commit
b5c5e52bd4
1 changed files with 25 additions and 22 deletions
|
|
@ -228,8 +228,11 @@
|
|||
standard-output
|
||||
standard-input)
|
||||
&body body)
|
||||
"body uses a clog-gui based debugger instead of the console"
|
||||
"body uses a clog-gui based debugger instead of the console, if clog-obj is
|
||||
nil uses *clog-debug-instance*"
|
||||
`(with-open-stream (out-stream (make-instance 'dialog-out-stream))
|
||||
(unless clog-body
|
||||
(setf clog-body *clog-debug-instance*))
|
||||
(with-open-stream (in-stream (make-instance 'dialog-in-stream :clog-obj ,clog-obj :source out-stream))
|
||||
(labels ((my-debugger (condition encapsulation)
|
||||
(handler-case
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue