See CHANGES.recent
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ca0cb04690
commit
e465a6ae6a
3 changed files with 93 additions and 49 deletions
|
|
@ -39,7 +39,20 @@
|
|||
(setf lastcase :other)))
|
||||
(intern (coerce (nreverse res) 'string))))
|
||||
|
||||
(defmacro swig-defconstant (string value)
|
||||
(let ((symbol (funcall *swig-identifier-converter* string :type :constant)))
|
||||
`(eval-when (compile load eval)
|
||||
(defconstant ,symbol ,value)
|
||||
(export (quote ,symbol)))))
|
||||
|
||||
(defmacro swig-defun (name &rest rest)
|
||||
(let ((symbol (funcall *swig-identifier-converter* name :type :operator)))
|
||||
`(eval-when (compile load eval)
|
||||
(excl::compiler-let ((*record-xref-info* nil))
|
||||
(ff:def-foreign-call ,symbol ,@rest)
|
||||
(export (quote ,symbol))))))
|
||||
|
||||
|
||||
|
||||
) ;; eval-when
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue