The ErrMsg and ifloc members were unused or had no effect.
{
int token = scanToken(ppToken);
elsetracker++;
- if (! ifdepth++)
- ifloc = ppToken->loc;
+ ifdepth++;
if (ifdepth > maxIfNesting) {
parseContext.ppError(ppToken->loc, "maximum nesting depth exceeded", "#if", "");
return 0;
int ifdepth; // current #if-#else-#endif nesting in the cpp.c file (pre-processor)
bool elseSeen[maxIfNesting]; // Keep a track of whether an else has been seen at a particular depth
int elsetracker; // #if-#else and #endif constructs...Counter.
- const char* ErrMsg;
class tMacroInput : public tInput {
public:
//
// from Pp.cpp
//
- TSourceLoc ifloc; /* outermost #if */
+
// Used to obtain #include content.
const TShader::Includer& includer;