diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2005-03-25 13:33:39 +0300 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2005-03-25 13:33:39 +0300 |
commit | c844aa265ad4eb50ad0e18661470fa6092052728 (patch) | |
tree | c4a778ab1227e4266022fd076e8a0cb709badd13 /source/gameengine/Expressions/InputParser.cpp | |
parent | 3dd17cec3bcaa3885e14630e6a71a8486e9b2697 (diff) |
Big patches:
Erwin Coumans: Abstract the physics engine
Charlie C: Joystick fixes
Me: Moved the ray cast (shadows, mouse sensor & ray sensor)
Diffstat (limited to 'source/gameengine/Expressions/InputParser.cpp')
-rw-r--r-- | source/gameengine/Expressions/InputParser.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/gameengine/Expressions/InputParser.cpp b/source/gameengine/Expressions/InputParser.cpp index 090c95e3c07..24033dd21a2 100644 --- a/source/gameengine/Expressions/InputParser.cpp +++ b/source/gameengine/Expressions/InputParser.cpp @@ -14,6 +14,8 @@ #include <stdlib.h> +#include "MT_assert.h" + #include "Value.h" #include "InputParser.h" #include "ErrorValue.h" @@ -371,7 +373,7 @@ int CParser::Priority(int optorkind) { case OPtimes: case OPdivide: return 5; } - assert(false); + MT_assert(false); return 0; // should not happen } @@ -400,7 +402,7 @@ CExpression *CParser::Ex(int i) { case OPless: e1 = new COperator2Expr(VALUE_LES_OPERATOR,e1, e2); break; case OPgreaterequal: e1 = new COperator2Expr(VALUE_GEQ_OPERATOR,e1, e2); break; case OPlessequal: e1 = new COperator2Expr(VALUE_LEQ_OPERATOR,e1, e2); break; - default: assert(false); break; // should not happen + default: MT_assert(false); break; // should not happen } } } else if (i == NUM_PRIORITY) { @@ -445,7 +447,7 @@ CExpression *CParser::Ex(int i) { e1 = new CConstExpr(new CStringValue(const_as_string,"")); break; default : - assert(false); + MT_assert(false); break; } NextSym(); @@ -483,7 +485,7 @@ CExpression *CParser::Ex(int i) { } case errorsym: { - assert(!e1); + MT_assert(!e1); STR_String errtext="[no info]"; if (errmsg) { @@ -498,7 +500,7 @@ CExpression *CParser::Ex(int i) { errmsg=NULL; } else { // does this happen ? - assert ("does this happen"); + MT_assert ("does this happen"); } } e1 = Error(errtext); @@ -508,7 +510,7 @@ CExpression *CParser::Ex(int i) { default: NextSym(); //return Error("Expression expected"); - assert(!e1); + MT_assert(!e1); e1 = Error("Expression expected"); } } |