src/Parser.cc

changeset 100
e0392814ee31
parent 99
44c0c7f31ae8
child 101
9ffae10ef76f
equal deleted inserted replaced
99:44c0c7f31ae8 100:e0392814ee31
1171 // 1171 //
1172 void BotscriptParser::PushScope (EReset reset) 1172 void BotscriptParser::PushScope (EReset reset)
1173 { 1173 {
1174 mScopeCursor++; 1174 mScopeCursor++;
1175 1175
1176 Print ("%1 <-> %2\n", mScopeStack.Size(), mScopeCursor + 1);
1177
1178 if (mScopeStack.Size() < mScopeCursor + 1) 1176 if (mScopeStack.Size() < mScopeCursor + 1)
1179 { 1177 {
1180 Print ("Adding a scope\n");
1181 ScopeInfo newscope; 1178 ScopeInfo newscope;
1182 mScopeStack << newscope; 1179 mScopeStack << newscope;
1183 reset = eResetScope; 1180 reset = eResetScope;
1184 } 1181 }
1185 1182

mercurial