Calls a function registered within the current interpreter.  
 More...
#include <instructions.hpp>
 | 
|   | CallFunctionInstruction (const std::string &space, const std::string &name, const std::size_t argc) | 
|   | Constructs a new CallFunctionInstruction instance.  More...
  | 
|   | 
| virtual AddressOffsetType  | execute (std::shared_ptr< ExecutionState > state) override | 
|   | Main execution method of the instruction. This serves as our switching statement that determines how opcodes will behave.  More...
  | 
|   | 
| 
virtual std::string  | disassemble () override | 
|   | Helper routine to produce a disassembly for this instruction. 
  | 
|   | 
 | 
| 
std::string  | mComment | 
|   | Compiler generated comment, used for generating easier to follow disassembly. 
  | 
|   | 
Calls a function registered within the current interpreter. 
 
◆ CallFunctionInstruction()
  
  
      
        
          | TorqueScript::Instructions::CallFunctionInstruction::CallFunctionInstruction  | 
          ( | 
          const std::string &  | 
          space,  | 
         
        
           | 
           | 
          const std::string &  | 
          name,  | 
         
        
           | 
           | 
          const std::size_t  | 
          argc  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructs a new CallFunctionInstruction instance. 
- Parameters
 - 
  
    | space | The namespace of the function to call.  | 
    | name | The name of the function to call.  | 
    | argc | The total number of arguments to pull off the stack for use as parameters.  | 
  
   
 
 
◆ execute()
  
  
      
        
          | virtual AddressOffsetType TorqueScript::Instructions::CallFunctionInstruction::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: