Modified proposal for default decls
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Tue Feb 27 11:00:10 EST 2001
Mon, 26 Feb 2001 11:17:07 -0700, Alastair Reid <reid at cs.utah.edu> pisze:
> I just remembered that my project (Knit - a C component language)
> has severe problems with use of macros in header files.
With hsc2hs it's easy enough to wrap macros:
foreign import "hs_incRef" unsafe incRef :: Object -> IO ()
#def inline void hs_incRef (PyObject *o) {Py_INCREF (o);}
If you are lucky, everything will be inlined across languages and
modules.
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTÊPCZA
QRCZAK
More information about the FFI
mailing list