New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IF clauses inside definitions #573
Comments
@robertwb changed milestone to |
@robertwb commented These macros are not a pre-parser as in C, and so to do this one would have to do a bit of trickery... |
@dagss commented I vote for resolving this as invalid; as discussed on the mailing list (sometimes August 2008) the efforts in this direction might be better concentrated on integrating other preprocessing languages with Cython instead (and slowly deprecating the IF statement altogether). |
Yeah I think we're agreed that we aren't planning to do this thanks |
Normally, IF only works in the global scope.
Defining conditional members of a struct necessitates redefining the whole structure:
This would be more convenient, especially for big structures:
Migrated from http://trac.cython.org/ticket/16
The text was updated successfully, but these errors were encountered: