Registers a callable function to the registry in the current interpreter.
More...
#include <instructions.hpp>
|
|
std::string | mComment |
| | Compiler generated comment, used for generating easier to follow disassembly.
|
| |
Registers a callable function to the registry in the current interpreter.
◆ FunctionDeclarationInstruction()
| TorqueScript::Instructions::FunctionDeclarationInstruction::FunctionDeclarationInstruction |
( |
const std::string |
package, |
|
|
const std::string & |
space, |
|
|
const std::string & |
name, |
|
|
const std::vector< std::string > |
parameterNames, |
|
|
const InstructionSequence & |
instructions |
|
) |
| |
|
inline |
Constructs a new instance of FunctionDeclarationInstruction.
- Parameters
-
| package | The package this function is defined in. |
| space | The namespace this function is defined in. |
| name | The name of this function. |
| parameterNames | The names of all parameters this function is expecting. |
| instructions | The instructions that make up the body of this function. |
◆ execute()
| virtual AddressOffsetType TorqueScript::Instructions::FunctionDeclarationInstruction::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: