diff options
Diffstat (limited to 'module/language/lua/common.scm')
-rw-r--r-- | module/language/lua/common.scm | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/module/language/lua/common.scm b/module/language/lua/common.scm index 16b5af2c8..d30a9b7c0 100644 --- a/module/language/lua/common.scm +++ b/module/language/lua/common.scm @@ -19,22 +19,11 @@ ;;; Code: (define-module (language lua common) - #:use-module (ice-9 format) - - #:export (syntax-error or-eqv?)) + #:export (syntax-error)) (define (syntax-error src string . args) "Throw an error tagged with 'syntax-error, and print detailed source code information when available. STRING and ARGS are given to FORMAT." (throw 'syntax-error #f (apply format #f string args) src #f #f '())) - -;; I was using CASE, but this is more succinct -;; (or-eqv? 1 #f 1) => (or (eqv? 1 #f) (eqv? 1 1)) -(define-syntax or-eqv? - (syntax-rules () - ((_ test '(value ...)) - (or (eqv? test 'value) ...)) - ((_ test value ...) - (or (eqv? test value) ...)))) |