[Pyrex] How could I embed/inline a small piece of c code in pyrex file?

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 14 00:00:17 CET 2006


Yong Sun wrote:

> BTW, how did you deal with the #define constant in C source? I use 
> "ctypedef enum:" block to re-declare them.

That's a perfectly good way.

You don't have to specify the values in the
Pyrex file, only the names. The values will be
gotten from the .h file.

Greg



More information about the Pyrex mailing list