ERIS CORE

◆ update()

void AppWren::update ( )
overrideprotectedvirtual

class specific update implementation

Reimplemented from AppBaseClass.

Definition at line 1638 of file AppWren.cpp.

1638  {
1639  if (enable_call_forwarding == false){ //if no script loaded
1640  return;
1641  } else{
1642  wrenEnsureSlots(vm,8);
1643  wrenSetSlotHandle(vm, 0, h_slot0);//App
1644  if (!isWrenResultOK(wrenCall(vm,h_update))){
1646  };
1647  }
1648  wrenCollectGarbage(vm);
1649 }; //allways called even if app is not active
WrenHandle * h_update
Definition: AppWren.h:783
void releaseWrenHandles()
release any/all Wren embedded call handles
Definition: AppWren.cpp:1651
bool isWrenResultOK(WrenInterpretResult res)
Definition: AppWren.h:543
bool enable_call_forwarding
Definition: AppWren.h:765
WrenVM * vm
Definition: AppWren.h:780
WrenHandle * h_slot0
Definition: AppWren.h:781

References enable_call_forwarding, h_slot0, h_update, isWrenResultOK(), releaseWrenHandles(), and vm.

+ Here is the call graph for this function: