diff options
Diffstat (limited to 'Source/ThirdParty/ANGLE/src/compiler/preprocessor/compile.h')
-rw-r--r-- | Source/ThirdParty/ANGLE/src/compiler/preprocessor/compile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/ThirdParty/ANGLE/src/compiler/preprocessor/compile.h b/Source/ThirdParty/ANGLE/src/compiler/preprocessor/compile.h index 69e3425..1180853 100644 --- a/Source/ThirdParty/ANGLE/src/compiler/preprocessor/compile.h +++ b/Source/ThirdParty/ANGLE/src/compiler/preprocessor/compile.h @@ -59,6 +59,7 @@ typedef struct Options_Rec{ int DumpAtomTable; } Options; +#define MAX_IF_NESTING 64 struct CPPStruct_Rec { // Public members SourceLoc *pLastSourceLoc; // Set at the start of each statement by the tree walkers @@ -80,7 +81,7 @@ struct CPPStruct_Rec { // Private members: SourceLoc ltokenLoc; int ifdepth; //current #if-#else-#endif nesting in the cpp.c file (pre-processor) - int elsedepth[64]; //Keep a track of #if depth..Max allowed is 64. + int elsedepth[MAX_IF_NESTING];//Keep a track of #if depth..Max allowed is 64. int elsetracker; //#if-#else and #endif constructs...Counter. const char *ErrMsg; int CompileError; //Indicate compile error when #error, #else,#elif mismatch. |