Macro
link-load
process-foreign-code c-string &key language control =>
A string.
One of:c,:c++ or:ansi-c.
One of:fasl,:object, or:source.
process-foreign-code is emitted byprocess-foreign-file when parsing C++ header files. :C,:C++ or:ansi-C, and is:C++ by default. :fasl,:object or:source. It is:fasl by default. If:fasl, the foreign code is compiled at compile time into a temporary.o file. The resulting object module is stored in the fasl file. If:object, the foreign code is compiled at compile time into a .o file with the same name as the lisp file, and loaded into the image when the fasl file is loaded. If:source, compilation and loading of the foreign code is done when the fasl file is loaded.
(process-foreign-code "int sum (int a, int b)
{ return a+b; } "
:control :source)
; When the lisp file containing this statement is
; loaded, the c-code is compiled and also loaded into
; the image.