summaryrefslogtreecommitdiff
path: root/src/gamebuilder.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-02-06 12:22:27 -0700
committerMike Buland <eichlan@xagasoft.com>2012-02-06 12:22:27 -0700
commit9de9d4e733ce872806c569334af4c9ace01db203 (patch)
treecd401af5f0e158807238d6f9215f16a2c202b3dc /src/gamebuilder.h
parent315dd7104f02a278b9ade41345060ed5f6825fbb (diff)
downloadstage-0.04.tar.gz
stage-0.04.tar.bz2
stage-0.04.tar.xz
stage-0.04.zip
Important bugfix in stack code. Thanks david!0.04
Diffstat (limited to 'src/gamebuilder.h')
-rw-r--r--src/gamebuilder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gamebuilder.h b/src/gamebuilder.h
index 80df1bc..f64f50e 100644
--- a/src/gamebuilder.h
+++ b/src/gamebuilder.h
@@ -15,6 +15,8 @@ public:
15 15
16 void parse( const Bu::String &sFile ); 16 void parse( const Bu::String &sFile );
17 17
18 void endCmpltExpr();
19
18 class Game *getGame() { return pGame; } 20 class Game *getGame() { return pGame; }
19 21
20 void setLiteral( const Variable &v ); 22 void setLiteral( const Variable &v );
@@ -36,6 +38,8 @@ public:
36 void addVarRef( const Bu::String &sName, ScopeId sid ); 38 void addVarRef( const Bu::String &sName, ScopeId sid );
37 void addFuncCall( const Bu::String &sName ); 39 void addFuncCall( const Bu::String &sName );
38 40
41 void stackMod( AstNode::Type iType );
42
39 void beginGlobal(); 43 void beginGlobal();
40 void closeGlobal(); 44 void closeGlobal();
41 45
@@ -58,6 +62,7 @@ private:
58 class AstFunction *pCurFnc; 62 class AstFunction *pCurFnc;
59 class Situation *pCurSit; 63 class Situation *pCurSit;
60 Situation::Mode eCurSitMode; 64 Situation::Mode eCurSitMode;
65 int iStackHeight;
61}; 66};
62 67
63#endif 68#endif