Jumps to the specified instruction offset if a condition is false. The condition checked is the value at the top of the stack coerced to a boolean. If the condition is true, this instruction only pops the stack.
More...
#include <instructions.hpp>
|
std::string | mComment |
| Compiler generated comment, used for generating easier to follow disassembly.
|
|
Jumps to the specified instruction offset if a condition is false. The condition checked is the value at the top of the stack coerced to a boolean. If the condition is true, this instruction only pops the stack.
◆ JumpFalseInstruction()
TorqueScript::Instructions::JumpFalseInstruction::JumpFalseInstruction |
( |
const AddressType |
offset | ) |
|
|
inline |
Constructs a new instance of JumpFalseInstruction.
- Parameters
-
offset | The instruction offset to jump to if the condition is false. |
◆ execute()
virtual AddressOffsetType TorqueScript::Instructions::JumpFalseInstruction::execute |
( |
std::shared_ptr< ExecutionState > |
state | ) |
|
|
inlineoverridevirtual |
Main execution method of the instruction. This serves as our switching statement that determines how opcodes will behave.
- Parameters
-
state | The current execution state to act upon. |
Implements TorqueScript::Instructions::Instruction.
The documentation for this class was generated from the following file: