ERIS CORE

◆ vmConstructor()

void FLASHMEM AppWren::vmConstructor ( const char *  initial_script)

start, load and configure the handles of the VM

Definition at line 1435 of file AppWren.cpp.

1435  {
1436  startVM();
1437  loadScript(initial_script);
1438  getWrenHandles();
1439  wrenEnsureSlots(vm, 4);
1440  wrenSetSlotHandle(vm, 0, h_slot0);//App
1441  isWrenResultOK(wrenCall(vm,h_update));
1442 }
void FLASHMEM startVM()
start the VM
Definition: AppWren.cpp:1444
WrenHandle * h_update
Definition: AppWren.h:783
bool FASTRUN loadScript(const char *script)
runs the script in the VM
Definition: AppWren.h:152
bool isWrenResultOK(WrenInterpretResult res)
Definition: AppWren.h:543
void getWrenHandles()
VM post module load support function creates/updates the Wren embedded call handles.
Definition: AppWren.cpp:1670
WrenVM * vm
Definition: AppWren.h:780
WrenHandle * h_slot0
Definition: AppWren.h:781

References getWrenHandles(), h_slot0, h_update, isWrenResultOK(), loadScript(), startVM(), and vm.

Referenced by AppWren().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: