wren.vm

Undocumented in source.

Members

Aliases

Primitive
alias Primitive = bool function(WrenVM* vm, Value* args)
Undocumented in source.
WrenBindForeignClassFn
alias WrenBindForeignClassFn = WrenForeignClassMethods function(WrenVM* vm, const(char)* module_, const(char)* className)
Undocumented in source.
WrenBindForeignMethodFn
alias WrenBindForeignMethodFn = WrenForeignMethodFn function(WrenVM* vm, const(char)* module_, const(char)* className, bool isStatic, const(char)* signature)
Undocumented in source.
WrenErrorFn
alias WrenErrorFn = void function(WrenVM* vm, WrenErrorType type, const(char)* module_, int line, const(char)* message)
Undocumented in source.
WrenFinalizerFn
alias WrenFinalizerFn = void function(void* data)
Undocumented in source.
WrenForeignMethodFn
alias WrenForeignMethodFn = void function(WrenVM* vm)
Undocumented in source.
WrenLoadModuleCompleteFn
alias WrenLoadModuleCompleteFn = void function(WrenVM* vm, const(char)* name, WrenLoadModuleResult result)
Undocumented in source.
WrenLoadModuleFn
alias WrenLoadModuleFn = WrenLoadModuleResult function(WrenVM* vm, const(char)* name)
Undocumented in source.
WrenReallocateFn
alias WrenReallocateFn = void* function(void* memory, size_t newSize, void* userData)
Undocumented in source.
WrenResolveModuleFn
alias WrenResolveModuleFn = const(char)* function(WrenVM* vm, const(char)* importer, const(char)* name)
Undocumented in source.
WrenWriteFn
alias WrenWriteFn = void function(WrenVM* vm, const(char)* text)
Undocumented in source.

Enums

WrenErrorType
enum WrenErrorType
Undocumented in source.
WrenInterpretResult
enum WrenInterpretResult
Undocumented in source.
WrenType
enum WrenType
Undocumented in source.

Functions

wrenAbortFiber
void wrenAbortFiber(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenCall
WrenInterpretResult wrenCall(WrenVM* vm, WrenHandle* method)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenCollectGarbage
void wrenCollectGarbage(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenCompileSource
ObjClosure* wrenCompileSource(WrenVM* vm, const(char)* module_, const(char)* source, bool isExpression, bool printErrors)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenDeclareVariable
int wrenDeclareVariable(WrenVM* vm, ObjModule* module_, char* name, size_t length, int line)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenDefineVariable
int wrenDefineVariable(WrenVM* vm, ObjModule* module_, char* name, size_t length, Value value, int* line)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenEnsureSlots
void wrenEnsureSlots(WrenVM* vm, int numSlots)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenFinalizeForeign
void wrenFinalizeForeign(WrenVM* vm, ObjForeign* foreign)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenFindVariable
Value wrenFindVariable(WrenVM* vm, ObjModule* module_, char* name)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenFreeVM
void wrenFreeVM(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetClass
ObjClass* wrenGetClass(WrenVM* vm, Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetListCount
int wrenGetListCount(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetListElement
void wrenGetListElement(WrenVM* vm, int listSlot, int index, int elementSlot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetMapContainsKey
bool wrenGetMapContainsKey(WrenVM* vm, int mapSlot, int keySlot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetMapCount
int wrenGetMapCount(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetMapValue
void wrenGetMapValue(WrenVM* vm, int mapSlot, int keySlot, int valueSlot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetModuleVariable
Value wrenGetModuleVariable(WrenVM* vm, Value moduleName, Value variableName)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetSlotBool
bool wrenGetSlotBool(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetSlotBytes
const(char)* wrenGetSlotBytes(WrenVM* vm, int slot, int* length)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetSlotCount
int wrenGetSlotCount(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetSlotDouble
double wrenGetSlotDouble(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetSlotForeign
void* wrenGetSlotForeign(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetSlotHandle
WrenHandle* wrenGetSlotHandle(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetSlotString
const(char)* wrenGetSlotString(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetSlotType
WrenType wrenGetSlotType(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetUserData
void* wrenGetUserData(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetVariable
void wrenGetVariable(WrenVM* vm, const(char)* module_, const(char)* name, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenHasModule
bool wrenHasModule(WrenVM* vm, const(char)* module_)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenHasVariable
bool wrenHasVariable(WrenVM* vm, const(char)* module_, const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenInitConfiguration
void wrenInitConfiguration(WrenConfiguration* config)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenInsertInList
void wrenInsertInList(WrenVM* vm, int listSlot, int index, int elementSlot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenInterpret
WrenInterpretResult wrenInterpret(WrenVM* vm, const(char)* module_, const(char)* source)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenMakeCallHandle
WrenHandle* wrenMakeCallHandle(WrenVM* vm, const(char)* signature)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenMakeHandle
WrenHandle* wrenMakeHandle(WrenVM* vm, Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenNewVM
WrenVM* wrenNewVM(WrenConfiguration* config)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenPopRoot
void wrenPopRoot(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenPushRoot
void wrenPushRoot(WrenVM* vm, Obj* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenReallocate
void* wrenReallocate(WrenVM* vm, void* memory, size_t oldSize, size_t newSize)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenReleaseHandle
void wrenReleaseHandle(WrenVM* vm, WrenHandle* handle)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenRemoveMapValue
void wrenRemoveMapValue(WrenVM* vm, int mapSlot, int keySlot, int removedValueSlot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetListElement
void wrenSetListElement(WrenVM* vm, int listSlot, int index, int elementSlot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetMapValue
void wrenSetMapValue(WrenVM* vm, int mapSlot, int keySlot, int valueSlot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotBool
void wrenSetSlotBool(WrenVM* vm, int slot, bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotBytes
void wrenSetSlotBytes(WrenVM* vm, int slot, char* bytes, size_t length)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotDouble
void wrenSetSlotDouble(WrenVM* vm, int slot, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotHandle
void wrenSetSlotHandle(WrenVM* vm, int slot, WrenHandle* handle)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotNewForeign
void* wrenSetSlotNewForeign(WrenVM* vm, int slot, int classSlot, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotNewList
void wrenSetSlotNewList(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotNewMap
void wrenSetSlotNewMap(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotNull
void wrenSetSlotNull(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetSlotString
void wrenSetSlotString(WrenVM* vm, int slot, char* text)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenSetUserData
void wrenSetUserData(WrenVM* vm, void* userData)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

WREN_MAX_TEMP_ROOTS
enum WREN_MAX_TEMP_ROOTS;
Undocumented in source.

Static functions

bindForeignClass
void bindForeignClass(WrenVM* vm, ObjClass* classObj, ObjModule* module_)
Undocumented in source. Be warned that the author may not have intended to support it.
bindMethod
void bindMethod(WrenVM* vm, int methodType, int symbol, ObjModule* module_, ObjClass* classObj, Value methodValue)
Undocumented in source. Be warned that the author may not have intended to support it.
callForeign
void callForeign(WrenVM* vm, ObjFiber* fiber, WrenForeignMethodFn foreign, int numArgs)
Undocumented in source. Be warned that the author may not have intended to support it.
captureUpvalue
ObjUpvalue* captureUpvalue(WrenVM* vm, ObjFiber* fiber, Value* local)
Undocumented in source. Be warned that the author may not have intended to support it.
checkArity
bool checkArity(WrenVM* vm, Value value, int numArgs)
Undocumented in source. Be warned that the author may not have intended to support it.
closeUpvalues
void closeUpvalues(ObjFiber* fiber, Value* last)
Undocumented in source. Be warned that the author may not have intended to support it.
compileInModule
ObjClosure* compileInModule(WrenVM* vm, Value name, char* source, bool isExpression, bool printErrors)
Undocumented in source. Be warned that the author may not have intended to support it.
createClass
void createClass(WrenVM* vm, int numFields, ObjModule* module_)
Undocumented in source. Be warned that the author may not have intended to support it.
createForeign
void createForeign(WrenVM* vm, ObjFiber* fiber, Value* stack)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultReallocate
void* defaultReallocate(void* ptr, size_t newSize, void* _)
Undocumented in source. Be warned that the author may not have intended to support it.
endClass
void endClass(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
findForeignMethod
WrenForeignMethodFn findForeignMethod(WrenVM* vm, char* moduleName, char* className, bool isStatic, char* signature)
Undocumented in source. Be warned that the author may not have intended to support it.
getModule
ObjModule* getModule(WrenVM* vm, Value name)
Undocumented in source. Be warned that the author may not have intended to support it.
getModuleVariable
Value getModuleVariable(WrenVM* vm, ObjModule* module_, Value variableName)
Undocumented in source. Be warned that the author may not have intended to support it.
importModule
Value importModule(WrenVM* vm, Value name)
Undocumented in source. Be warned that the author may not have intended to support it.
methodNotFound
void methodNotFound(WrenVM* vm, ObjClass* classObj, int symbol)
Undocumented in source. Be warned that the author may not have intended to support it.
resolveModule
Value resolveModule(WrenVM* vm, Value name)
Undocumented in source. Be warned that the author may not have intended to support it.
runInterpreter
WrenInterpretResult runInterpreter(WrenVM* vm, ObjFiber* fiber)
Undocumented in source. Be warned that the author may not have intended to support it.
runtimeError
void runtimeError(WrenVM* vm)
Undocumented in source. Be warned that the author may not have intended to support it.
setSlot
void setSlot(WrenVM* vm, int slot, Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
validateApiSlot
void validateApiSlot(WrenVM* vm, int slot)
Undocumented in source. Be warned that the author may not have intended to support it.
validateSuperclass
Value validateSuperclass(WrenVM* vm, Value name, Value superclassValue, int numFields)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenCallFunction
void wrenCallFunction(WrenVM* vm, ObjFiber* fiber, ObjClosure* closure, int numArgs)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenGetClassInline
ObjClass* wrenGetClassInline(WrenVM* vm, Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenIsFalsyValue
bool wrenIsFalsyValue(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.
wrenIsLocalName
bool wrenIsLocalName(const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

WrenConfiguration
struct WrenConfiguration
Undocumented in source.
WrenForeignClassMethods
struct WrenForeignClassMethods
Undocumented in source.
WrenLoadModuleResult
struct WrenLoadModuleResult
Undocumented in source.
WrenVM
struct WrenVM
Undocumented in source.

Meta