ERIS CORE

◆ isWrenResultOK()

bool AppWren::isWrenResultOK ( WrenInterpretResult  res)
inlineprotected

Definition at line 543 of file AppWren.h.

543  {
544  switch (res){
545  case WREN_RESULT_COMPILE_ERROR:
547  sci->printf(F("M AppWren::isWrenResultOK WREN_RESULT_COMPILE_ERROR\n"));
548  sci->printf(F("VM WREN_ERR Compilation Failed\n"));
549  sci->sendLZ4Message();
550  }
551  return false;
552  case WREN_RESULT_RUNTIME_ERROR:
554  sci->printf(F("M AppWren::isWrenResultOK WREN_RESULT_RUNTIME_ERROR\n"));
555  sci->printf(F("VM WREN_WRN [Implementation Warning] call forwarding will be disabled until next script load.\n"));
556  sci->sendLZ4Message();
557  }
558  return false;
559  case WREN_RESULT_SUCCESS:
560  return true;
561  default:
563  sci->printf(F("M AppWren::isWrenResultOK UNDEFINED RESULT!\n"));
564  sci->sendLZ4Message();
565  }
566  return false; //should never execute
567  }
568  }
SvcSerialCommandInterface * sci
Definition: AppBaseClass.h:39
bool requestStartLZ4Message()
request to start a lz4 compressed message starts the message and returns true if available returns f...
void sendLZ4Message()
Calling this function signals the end of a compressed message. The txBuffer contents are lz4 compres...

References SvcSerialCommandInterface::requestStartLZ4Message(), AppBaseClass::sci, and SvcSerialCommandInterface::sendLZ4Message().

Referenced by loadScript(), messageHandler(), onAnalog1(), onAnalog2(), onAnalog3(), onAnalog4(), onFocus(), onFocusLost(), onTouch(), onTouchDrag(), onTouchRelease(), render(), update(), and vmConstructor().

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