[Pyrex] #if
Michael P. Dubner
dubnerm at mindless.com
Sun Oct 19 06:31:25 CEST 2003
Bryan Weingarten wrote:
> this looks great. i have one question that i couldn't figure out from
> the documentation. in this example
>
> cdef extern from "spam.h":
> void *spam_init(int argc, char* argv[])
> * #@if HostOS=="nt"*
> void spam_as_nt_service(void *spam)
> * #@elif HostOS=="posix"*
> void spam_use_fork(void *spam, int flag)
> * #@endif*
> spam_finish(void *spam)
>
>
> is HostOS defined in spam.h?
HostOS is preprocessor constant that holds compile-time os.name, as
defined in documentation
http://www.dubnerm.newmail.ru/soft/PyxPP/
section Syntax/Constants
--
Best regards,
Michael Dubner (dubnerm at mindless.com)
Brainbench MVP/HTML+JavaScript (http://www.brainbench.com)
PS: Sorry for my English
More information about the Pyrex
mailing list