mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-14 13:21:54 -08:00
Callback functions must appear in the headers so that they can be called by other compiled functios.
This commit is contained in:
parent
8378517f67
commit
a588dcb62c
1 changed files with 3 additions and 0 deletions
|
|
@ -86,15 +86,18 @@
|
|||
(:stdcall "__stdcall ")
|
||||
(t (cmperr "DEFCALLBACK does not support ~A as calling convention"
|
||||
call-type)))))
|
||||
(wt-nl-h "static " return-type-name " " fmod c-name "(")
|
||||
(wt-nl1 "static " return-type-name " " fmod c-name "(")
|
||||
(loop for n from 0
|
||||
and type in arg-types
|
||||
with comma = ""
|
||||
do
|
||||
(progn
|
||||
(wt-h comma (rep-type-name (ffi::%convert-to-arg-type type)) " var" n)
|
||||
(wt comma (rep-type-name (ffi::%convert-to-arg-type type)) " var" n)
|
||||
(setf comma ",")))
|
||||
(wt ")")
|
||||
(wt-h ");")
|
||||
(wt-nl1 "{")
|
||||
(when return-p
|
||||
(wt-nl return-type-name " output;"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue