On Mon, Dec 8, 2008 at 8:47 AM, Greg Ewing <[EMAIL PROTECTED]> wrote: > David Cournapeau wrote: > >> it won't work in that case: I want to use a symbol which may or not >> exist depending on the header version, not a symbol whose value may >> change. > > Is there some reason you need IFDEF in particular > rather than just IF?
Yes, since the symbol exists in some versions of the header only. > > Note that there's no way you're going to be able to > test whether a symbol is defined in a .h file from > Cython, since it knows nothing about the contents > of .h files apart from what you tell it. Yes, I understand that I can't use the symbol in cython: I just want to control it in the generated C file. Robert solution with fake functions which translate to strings does exactly what I want to do. David _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
