[Cython] Correct way of defining enums
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Nov 30 06:08:29 CET 2011
Stéfan van der Walt wrote:
> Hi Licandro
>
> On Tue, Nov 29, 2011 at 10:32 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:
>
>>Try "ctypedef enum ..."
>
> Unfortunately, that doesn't work either :/
Did you try both together? I.e.
cdef extern from "ndarraytypes.h":
ctypedef enum NPY_SEARCHSIDE:
NPY_SEARCHLEFT = 0
NPY_SEARCHRIGHT = 1
--
Greg
More information about the cython-devel
mailing list