129 static INT emptyData;
Access callback arguments (e.g. value of "a" in "f(a)"). Set return value of the callback function,...
Definition args.h:88
friend class Engine
Definition args.h:120
bool hasReturnValue()
Check if a return value is set.
Var get(INT dataIndex)
Get argument value, eg. get(2) to value of c if the call is "f(a, b, c)".
INT count()
Get number of arguments, eg. 3 for "f(a, b, c)".
friend class core::Engine
Definition args.h:132
void returnInt(INT value)
Set return value, returned by a callback.
void returnBool(bool value)
Set return value, returned by a callback.
Access Paula script variable data.
Definition args.h:19
friend class core::StackIterator
Definition args.h:77
bool getOp(char &out) const
Write variable's operation character (eg. '+' or '<') to reference, if variable is of correct type.
bool getBool(bool &out) const
Write variable's boolean value to reference, if variable is of correct type.
INT size() const
Get node size.
INT type() const
Get variable type, eg. NODE_INTEGER. See node_types.h.
bool getDouble(DOUBLE &out) const
Write variable's double (64-bit floating point) value to reference, if variable is of correct type.
friend class core::TreeIterator
Definition args.h:75
bool match(INT tag) const
Compare node (variable) type.
friend class core::Stack
Definition args.h:76
friend class core::Engine
Definition args.h:78
bool getChars(char *&out) const
Write variable's text value (char*) to reference, if variable is of correct type.
friend class core::Tree
Definition args.h:74
bool getInt(INT &out) const
Write variable's integer (32 bits) value to reference, if variable is of correct type.
bool isSubtree() const
Check if a variable is a subtree.