[Pyrex] wrapping "Dynamic" cast

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Jan 22 02:31:28 CET 2004


Toshio <toshio at tiki-lounge.com>:

> I'm wrapping a library that has a Macro that does "dynamic" casting.  
> I've been trying to get this simplified version to work: 
>  
> in C macro.h: 
> #define CAST (i, type) ((type *)i) 

This is impossible in Pyrex. You'll have to write out the
cast in Pyrex syntax each time.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list