[Pyrex] Pyrex DEF, IF, etc
Stefan Behnel
stefan_ml at behnel.de
Thu Jun 5 08:42:49 CEST 2008
Hi,
Jonne wrote:
> It seems as though the IF statement did not work as I expected:
>
> This works:
>
> IF UNAME_SYSNAME == "Windows":
> ctypedef struct ohmygod:
> int greece
> ELSE:
> ctypedef struct ohmygod:
> float pelvis
>
> While this doesn't:
>
> ctypedef struct ohmygod:
> IF UNAME_SYSNAME == "Windows":
> int greece
> ELSE:
> float pelvis
>
> I figure this is not implemented yet, but it would be nice to see in the
> future.
Yes, it doesn't work /everywhere/. :)
You can file an enhancement request in the Cython bug tracker, so that we
don't forget about it:
http://trac.cython.org/cython_trac/newticket
Stefan
More information about the Pyrex
mailing list