[Pyrex] Pyrex DEF, IF, etc
Jonne
jmickelin at gmail.com
Wed Jun 4 23:38:08 CEST 2008
Thank you, I was using version 0.9.4.
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.
2008/6/4 Stefan Behnel <stefan_ml at behnel.de>:
> Hi,
>
> Jonne wrote:
> > I am trying to use the compile-time statements described here:
> >
> http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/basics.html#mozTocId42018
> >
> > 'DEF MAX_PAYLOAD = 32' gives me the following error:
> > /src/pyrextest/pyrextest.pxd:1:4: Syntax error in simple statement list
> >
> > while using 'IF UNAME_SYSNAME != "Windows":' gives me
> > /src/pyrextest/pyrextest.pxd:173:11: Syntax error in C variable
> declaration.
> >
> > Am I doing something wrong?
>
> you didn't mention which Pyrex version you are using, so please verify that
> you have the latest version installed.
>
> Stefan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.copyleft.no/pipermail/pyrex/attachments/20080604/2c32e7e2/attachment-0001.html
More information about the Pyrex
mailing list