ScriptContext

A script execution context

Constructors

this
this(ScriptEngine engine, asIScriptContext* ctx)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

abort
void abort()

Aborts this context

addRef
int addRef()

Adds a reference to this script context

execute
ContextState execute()

Executes this context

getAddressOfArg
void* getAddressOfArg(asUINT arg)

Gets the address of an argument

getCallstackSize
asUINT getCallstackSize()

Gets the size of the callstack

getEngine
ScriptEngine getEngine()

Gets the script engine this context belongs to

getLineNumber
int getLineNumber(asUINT stackLevel)

Gets the line number based on stackLevel which the context is currently executing

getLineNumber
int getLineNumber(asUINT stackLevel, int* column)

Gets the line number, column and sectino name based on stackLevel which the context is currently executing

getState
ContextState getState()

Gets the current state of the context

getUserData
void* getUserData()

Gets the user data

isNested
bool isNested(uint nestCount)

Gets whether the context has any nested calls

popState
void popState()

Restores previous execution state

prepare
void prepare(Function func)

Prepares this context

pushState
void pushState()

Backups current state and prepares state for a nested call

release
int release()

Releases a reference to this script context

setArg
void setArg(asUINT arg, T value)

Sets a base type argument

setArgObject
void setArgObject(asUINT arg, void* value)

Sets object/handle argument value

setArgVarType
void setArgVarType(asUINT arg, T* ptr, int typeId)

Sets the variable argument value and type

setObject
void setObject(void* obj)

Sets object for class method call

setUserData
void* setUserData(void* data)

Sets the user data

suspend
void suspend()

Suspends this context

unprepare
void unprepare()

Un-prepares this context

Variables

ctx
asIScriptContext* ctx;
Undocumented in source.

Meta