Pyrex: wrapping #defines with a type name argument

Edward C. Jones edcjones at
Fri Apr 11 16:20:16 CEST 2003

A common type of C macro has a type as an argument. For example:

     #define GET_ELEM(type,x,n) (*(type*)((char*)(x) + n))

What is a good way to wrap this in Pyrex (if any)?

More information about the Python-list mailing list