Pyrex: wrapping #defines with a type name argument

Edward C. Jones edcjones at erols.com
Fri Apr 11 10:20:16 EDT 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