Pyrex: wrapping #defines with a type name argument
Olaf Delgado Friedrichs
delgado at okeeffe-pc3.la.asu.edu
Mon Apr 14 19:16:20 CEST 2003
Greg Ewing wrote:
>Edward C. Jones wrote:
>> #define GET_ELEM(type,x,n) (*(type*)((char*)(x) + n))
>> What is a good way to wrap this in Pyrex (if any)?
>(2) Don't use the macro at all, and do the casting
> yourself in Pyrex each time you need it.
Just an odd thought: couldn't one feed a Pyrex file with C macros to
the C preprocessor?
More information about the Python-list