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:
marauder2k7 2024-06-18 15:15:25 +01:00
parent 54d0da6690
commit fed83cdb8f
2 changed files with 9 additions and 9 deletions

View file

@ -1145,6 +1145,14 @@ Con::EvalResult CodeBlock::exec(U32 ip, const char* functionName, Namespace* thi
break;
}
ip = code[ip];
break;
case OP_JMPNOTSTRING:
if (stack[_STK--].getBool())
{
ip++;
break;
}
ip = code[ip];
break;
case OP_JMPIFF:
@ -1163,14 +1171,6 @@ Con::EvalResult CodeBlock::exec(U32 ip, const char* functionName, Namespace* thi
}
ip = code[ip];
break;
case OP_JMPSTRING:
if (stack[_STK--].getBool())
{
ip++;
break;
}
ip = code[ip];
break;
case OP_JMPIFNOT_NP:
if (stack[_STK].getInt())
{

View file

@ -62,9 +62,9 @@ namespace Compiler
OP_JMPIFFNOT,
OP_JMPIFNOT,
OP_JMPNOTSTRING,
OP_JMPIFF,
OP_JMPIF,
OP_JMPSTRING,
OP_JMPIFNOT_NP,
OP_JMPIF_NP, // 10
OP_JMP,