

Definition at line 219 of file cmd.cc.
Public Member Functions | |
| CallCmd (const Token &t, unsigned nArgs, bool pushResult) | |
| virtual void | toStream (std::ostream &str) const |
| dump command to stream in human-readable format | |
| virtual bool | exec (FncDefinition *fnc) |
| execute command in the context of calling function | |
Private Attributes | |
| Token | t_ |
| unsigned | nArgs_ |
| bool | pushResult_ |
| virtual void toStream | ( | std::ostream & | ) | const [inline, virtual] |
dump command to stream in human-readable format
Implements ICmd.
Definition at line 225 of file cmd.cc.
References StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, nArgs_, pushResult_, and t_.
| bool exec | ( | FncDefinition * | ) | [virtual] |
execute command in the context of calling function
Implements ICmd.
Definition at line 866 of file cmd.cc.
References FncDeclaration::args, StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_LIGHT_GREEN, StreamDecorator::C_LIGHT_RED, StreamDecorator::C_NO_COLOR, StreamDecorator::C_YELLOW, Vm::callDepth, StreamDecorator::E_ERROR, CmdList::exec(), Vm::fileName, Vm::fncSet, FncSet::getDefinition(), Vm::maxCallDepth, nArgs_, ValueStack::popToVar(), ValueStack::pushFromVar(), pushResult_, SHARED_PTR, VarSet::size(), t_, Token::text, FncDefinition::vm, and Vm::vmStack.

unsigned nArgs_ [private] |
bool pushResult_ [private] |
1.5.4