diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/util.scm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/module/util.scm b/module/util.scm index 5e54fbc4..14b6cfde 100644 --- a/module/util.scm +++ b/module/util.scm @@ -8,9 +8,20 @@ mod! sort* sort*! find-min catch-multiple) - #:replace (let* set!) + #:replace (let* set! define-syntax) ) +((@ (guile) define-syntax) define-syntax + (syntax-rules () + ((_ (name args ...) body ...) + ((@ (guile) define-syntax) name + (lambda (args ...) + body ...))) + ((_ otherwise ...) + ((@ (guile) define-syntax) otherwise ...)))) + + + (define-public upstring->symbol (compose string->symbol string-upcase)) (define-public symbol-upcase (compose string->symbol string-upcase symbol->string)) |