Skip to content
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

#elif directive is subject to expression evaluations too #57

Open
cyndyishida opened this issue May 14, 2018 · 2 comments
Open

#elif directive is subject to expression evaluations too #57

cyndyishida opened this issue May 14, 2018 · 2 comments
Assignees
Milestone

Comments

@cyndyishida
Copy link
Collaborator

ex. this is valid

#if defined(M)
 test;
#elif 1
std::cout << "test " << std::endl;
#endif
@cyndyishida cyndyishida self-assigned this May 14, 2018
@cyndyishida cyndyishida added this to the Hello, World! milestone May 14, 2018
@bocajnotnef
Copy link
Contributor

Pepper doesn't blow up if you hand it an #elif, which seems weird to me. It also doesn't handle it correctly, which is good, but it bothers me a bit that it silently passes when handed a directive it doesn't understand.

Unless it's actually emitting a syntax error somewhere and that's being consumed by ply.

@cyndyishida
Copy link
Collaborator Author

interesting, its possible that system dependent bc on my machine it blew up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants