diff options
author | Thomas White <taw@physics.org> | 2020-08-30 17:15:45 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-30 17:15:45 +0200 |
commit | c454bd5e208ebc8c9184e51d728b3c91ad117d4c (patch) | |
tree | 9871345ac4528fe24b00fc24ee5749f726d79372 /guile | |
parent | 75685e004887f9c07def4bef1db0a24e8693ab2e (diff) |
(define-state a ...) -> (define a (lighting-state ...))
Diffstat (limited to 'guile')
-rw-r--r-- | guile/starlet/base.scm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/guile/starlet/base.scm b/guile/starlet/base.scm index 9caba9e..f0dead1 100644 --- a/guile/starlet/base.scm +++ b/guile/starlet/base.scm @@ -28,7 +28,7 @@ attr-boolean attr-list current-state - define-state + lighting-state at)) (define-class <fixture-attribute> (<object>) @@ -405,13 +405,12 @@ (register-state! (current-state)) -(define-syntax define-state +(define-syntax lighting-state (syntax-rules () - ((_ state-name body ...) - (define state-name - (parameterize ((current-state (make-empty-state))) - body ... - (current-state)))))) + ((_ body ...) + (parameterize ((current-state (make-empty-state))) + body ... + (current-state))))) (define-syntax at |