[Cython] IFDEF in cython ?

Gabriel Gellner ggellner at uoguelph.ca
Sat Dec 6 16:08:25 CET 2008


On Sat, Dec 06, 2008 at 10:27:03PM +0900, David Cournapeau wrote:
> Hi,
> 
> I would like to know whether adding an IFDEF-like feature in cython
> would be feasible ? I would like to define some cython code depending
> on some defines in the header of the library I am wrapping.
> 
Not sure if this is what you mean:
http://docs.cython.org/docs/language_basics.html#conditional-compilation
If not it is probably the place to look for how hard it would be to add.

Gabriel


More information about the Cython-dev mailing list