-
Notifications
You must be signed in to change notification settings - Fork 62
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
EAT / EXPAND undeclared #8
Comments
It expands correctly for me: #include "cloak.h"
WHEN(1)(true) // true
WHEN(0)(true) // nothing Which outputs:
I see no undeclared message. |
I am also having problems with EXPAND when used with the REPEAT macro: #define DECL(i, _) stack[ i ] = 0; generates the error messages: using -S -save-temps, I can see the from the intermediate file that EXPAND is being "painted blue": so it only seems to expand the one time. If I break up the REPEAT macro into multiple REPEAT macros so that I can use different EXPAND() macros (i.e. a unique WHEN + EXPAND for each and every REPEAT) , then my issues go away. Of course, that defeats the whole purpose of the REPEAT macro. Any ideas? |
The expand works if the REPEAT_INDIRECT() is OBSTRUCTED, but not if DEFER'd. FYI: the cloak.h file has the correct code, as is the "C-Preprocessor-tricks,-tips,-and-idioms" wiki. from https://github.com/pfultz2/Cloak/wiki/Is-the-C-preprocessor-Turing-complete%3F: |
A note to y'all showing up late: |
Hi I am getting error for EAT or EXPAND undeclared while using with WHEN(0) or WHEN(1)
The text was updated successfully, but these errors were encountered: