summaryrefslogtreecommitdiff
path: root/src/guile/skribilo/debug.scm
diff options
context:
space:
mode:
Diffstat (limited to 'src/guile/skribilo/debug.scm')
-rw-r--r--src/guile/skribilo/debug.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/guile/skribilo/debug.scm b/src/guile/skribilo/debug.scm
index b880a66..cc0dfb2 100644
--- a/src/guile/skribilo/debug.scm
+++ b/src/guile/skribilo/debug.scm
@@ -27,7 +27,8 @@
(define-module (skribilo debug)
:export (with-debug %with-debug
debug-item skribe-debug set-skribe-debug! add-skribe-debug-symbol
- no-debug-color))
+ no-debug-color)
+ :use-module (srfi srfi-17))
(define *skribe-debug* 0)
@@ -50,8 +51,9 @@
(define (no-debug-color)
(set! *skribe-debug-color* #f))
-(define (skribe-debug)
- *skribe-debug*)
+(define-public skribe-debug
+ (getter-with-setter (lambda () *skribe-debug*)
+ (lambda (val) (set! *skribe-debug* val))))
;;
;; debug-port