Re: Pyrex DEF, IF, etc
Stefan Behnel <[email protected]> Thu, 05 Jun 2008 08:42:49 +0200
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
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