mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
naming
change enum to OP_JMPIFNOTSTRING (same name as others doing similar for different types) place case with other ifnot statements
This commit is contained in:
parent
54d0da6690
commit
fed83cdb8f
2 changed files with 9 additions and 9 deletions
|
|
@ -1145,6 +1145,14 @@ Con::EvalResult CodeBlock::exec(U32 ip, const char* functionName, Namespace* thi
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ip = code[ip];
|
||||||
|
break;
|
||||||
|
case OP_JMPNOTSTRING:
|
||||||
|
if (stack[_STK--].getBool())
|
||||||
|
{
|
||||||
|
ip++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
ip = code[ip];
|
ip = code[ip];
|
||||||
break;
|
break;
|
||||||
case OP_JMPIFF:
|
case OP_JMPIFF:
|
||||||
|
|
@ -1163,14 +1171,6 @@ Con::EvalResult CodeBlock::exec(U32 ip, const char* functionName, Namespace* thi
|
||||||
}
|
}
|
||||||
ip = code[ip];
|
ip = code[ip];
|
||||||
break;
|
break;
|
||||||
case OP_JMPSTRING:
|
|
||||||
if (stack[_STK--].getBool())
|
|
||||||
{
|
|
||||||
ip++;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
ip = code[ip];
|
|
||||||
break;
|
|
||||||
case OP_JMPIFNOT_NP:
|
case OP_JMPIFNOT_NP:
|
||||||
if (stack[_STK].getInt())
|
if (stack[_STK].getInt())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -62,9 +62,9 @@ namespace Compiler
|
||||||
|
|
||||||
OP_JMPIFFNOT,
|
OP_JMPIFFNOT,
|
||||||
OP_JMPIFNOT,
|
OP_JMPIFNOT,
|
||||||
|
OP_JMPNOTSTRING,
|
||||||
OP_JMPIFF,
|
OP_JMPIFF,
|
||||||
OP_JMPIF,
|
OP_JMPIF,
|
||||||
OP_JMPSTRING,
|
|
||||||
OP_JMPIFNOT_NP,
|
OP_JMPIFNOT_NP,
|
||||||
OP_JMPIF_NP, // 10
|
OP_JMPIF_NP, // 10
|
||||||
OP_JMP,
|
OP_JMP,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue