ssql: add check to `define-operator' to fail at macro expansion time rather than at runtime when invalid operator types are given

git-svn-id: https://code.call-cc.org/svn/chicken-eggs/release/4/ssql/trunk@22910 fca3e652-9b03-0410-8d7b-ac86a6ce46c4
master
syn 14 years ago
parent 9ae0559ec2
commit 33c17eb471

@ -18,6 +18,10 @@
,@(map (lambda (op)
(let ((ssql-op (first op))
(type (second op)))
(unless (memq (strip-syntax type) '(infix suffix prefix function))
(error "unknown operator syntax type" type))
(let-optionals (cddr op)
((sql-op (string-upcase (->string (strip-syntax ssql-op))))
(separator #f))

Loading…
Cancel
Save