[Cython] Correct way of defining enums

Stéfan van der Walt stefan at sun.ac.za
Wed Nov 30 06:54:13 CET 2011


On Tue, Nov 29, 2011 at 9:08 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Did you try both together? I.e.
>
>  cdef extern from "ndarraytypes.h":
>    ctypedef enum NPY_SEARCHSIDE:
>      NPY_SEARCHLEFT = 0
>      NPY_SEARCHRIGHT = 1

Yeap, no luck :(  Does this work on your system?

Stéfan


More information about the cython-devel mailing list