Modified proposal for default decls

Marcin 'Qrczak' Kowalczyk qrczak at
Tue Feb 27 11:00:10 EST 2001

Mon, 26 Feb 2001 11:17:07 -0700, Alastair Reid <reid at> 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

 __("<  Marcin Kowalczyk * qrczak at
  ^^                      SYGNATURA ZASTÊPCZA

More information about the FFI mailing list