Access callback arguments (e.g. value of "a" in "f(a)"). Set return value of the callback function, called from a script.
More...
#include <args.h>
Access callback arguments (e.g. value of "a" in "f(a)"). Set return value of the callback function, called from a script.
◆ count()
INT paula::Args::count |
( |
| ) |
|
Get number of arguments, eg. 3 for "f(a, b, c)".
- Returns
- Argument count.
◆ get()
Var paula::Args::get |
( |
INT |
dataIndex | ) |
|
Get argument value, eg. get(2) to value of c if the call is "f(a, b, c)".
- Parameters
-
dataIndex | Argument index, starting from 0. 0 <= dataIndex < count(). |
- Returns
- Argument value, or void (NODE_VOID) value doesn't exist. See class Var.
◆ hasReturnValue()
bool paula::Args::hasReturnValue |
( |
| ) |
|
Check if a return value is set.
- Returns
- True if a return value is set.
◆ returnBool()
void paula::Args::returnBool |
( |
bool |
value | ) |
|
Set return value, returned by a callback.
- Parameters
-
◆ returnInt()
void paula::Args::returnInt |
( |
INT |
value | ) |
|
Set return value, returned by a callback.
- Parameters
-
◆ core::Engine
friend class core::Engine |
|
friend |
◆ Engine
◆ Var
The documentation for this class was generated from the following file: