On Tue, 13 May 2008 14:49:11 +0700 "Anatoly A. Kazantsev" <[EMAIL PROTECTED]> wrote:
I have next code and it's not working properly.
In foo.h somebody wrote:
#define BAR 1
than I want to define module constant with same name and value:
cdef export from "foo.h":
сtypedef enum:
_BAR "BAR"
cdef public enum:
BAR = _BAR
In python BAR will have 0 not 1. And actually 0 is index number of BAR in the
enum.
Looks like value of _BAR is not applyed to BAR in the enum.
Maybe I do something wrong.
--
Anatoly A. Kazantsev
Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
pgpnEDUFlgT4E.pgp
Description: PGP signature
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
