Pyrex Hard Case

Francois Pinard pinard at iro.umontreal.ca
Mon Apr 28 13:44:12 EDT 2003


> > I'm not fully sure I'm replying to your question, but this might work:
> > 
> > ---------------------------------------------------------------------->
> > cdef extern from *:
> >     MACRO_NAME(EXPECTED_ARGUMENTS)
> > ----------------------------------------------------------------------<

[rdrb at 123.cl]

> I had already done that.
> extern MACRO_NAME(EXPECTED_ARGUMENTS)

This is not the same thing.  Your macro declaration, in Pyrex, really
ought to be within the `cdef extern from *:' and indented within it.
You do not need to repeat `extern', yet I presume it does not hurt either.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard





More information about the Python-list mailing list