DEF-CONSTANT was missing from our UFFI interface

This commit is contained in:
jgarcia 2007-08-09 20:50:46 +00:00
parent 4aef9500d0
commit 36b1af61d1

View file

@ -39,6 +39,13 @@
#-ecl-min
(clines "#include <string.h>")
(defmacro def-constant (name value &key (export nil))
"Macro to define a constant and to export it"
`(eval-when (:compile-toplevel :load-toplevel :execute)
(defconstant ,name ,value)
,(when export (list 'export `(quote ,name)))
',name))
;;;----------------------------------------------------------------------
;;; FOREIGN TYPES
;;;