2011/11/28 Stéfan van der Walt <ste...@sun.ac.za>:
>
> I tried different ways of defining the enum, e.g.
>
> cdef extern from "ndarraytypes.h":
>     cpdef enum NPY_SEARCHSIDE:
>         NPY_SEARCHLEFT = 0
>         NPY_SEARCHRIGHT = 1
>

This is (near to, see below) the right way, as that NumPy enum do is
declared in NumPy headers.

>
> But that doesn't work either.  Any suggestions would be appreciated.
>

Try "ctypedef enum ..."


-- 
Lisandro Dalcin
---------------
CIMEC (INTEC/CONICET-UNL)
Predio CONICET-Santa Fe
Colectora RN 168 Km 472, Paraje El Pozo
3000 Santa Fe, Argentina
Tel: +54-342-4511594 (ext 1011)
Tel/Fax: +54-342-4511169
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to