Wraps a nkScripts::CompilationResult and offers capabilities to use it in scripts.
More...
Wraps a nkScripts::CompilationResult and offers capabilities to use it in scripts.
◆ updateEnvironment()
static void nkAstraeus::nkScriptsWrap::CompilationResultWrapper::updateEnvironment |
( |
nkScripts::Environment * |
env | ) |
|
|
static |
Updates a given environment and set it up to use all functions wrapped by this wrapper.
- Parameters
-
env | The environment to set up. |
◆ constructor()
static void* nkAstraeus::nkScriptsWrap::CompilationResultWrapper::constructor |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for the constructor of the user type.
local r = nkScripts.CompilationResult.new() ;
- Parameters
-
stack | The parameter stack. |
- Returns
- An output value with the user type and data allocated.
◆ destructor()
static void nkAstraeus::nkScriptsWrap::CompilationResultWrapper::destructor |
( |
void * |
toDestroy | ) |
|
|
static |
Wrapper function for the destructor of the user type.
- Parameters
-
toDestroy | The data that has to be freed. |
◆ getFailureMessage()
static nkScripts::OutputValue nkAstraeus::nkScriptsWrap::CompilationResultWrapper::getFailureMessage |
( |
void * |
data | ) |
|
|
static |
Wrapper function for nkScripts::CompilationResult::_failureMessage, exposed as an attribute getter.
local m = r._failureMessage ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a string.
◆ getFailureType()
static nkScripts::OutputValue nkAstraeus::nkScriptsWrap::CompilationResultWrapper::getFailureType |
( |
void * |
data | ) |
|
|
static |
◆ getSuccess()
Wrapper function for nkScripts::CompilationResult::_success, exposed as an attribute getter.
local m = r._success ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a bool.
◆ setFailureMessage()
static void nkAstraeus::nkScriptsWrap::CompilationResultWrapper::setFailureMessage |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
◆ setFailureType()
static void nkAstraeus::nkScriptsWrap::CompilationResultWrapper::setFailureType |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
◆ setSuccess()
static void nkAstraeus::nkScriptsWrap::CompilationResultWrapper::setSuccess |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
The documentation for this class was generated from the following file: