1445 Serial.println(F(
"\nM AppWren::startVM()"));
1446 WrenConfiguration config;
1447 wrenInitConfiguration(&config);
1451 config.initialHeapSize = WREN_VM_HEAP_SIZE;
1452 config.minHeapSize = WREN_VM_HEAP_SIZE;
1453 config.heapGrowthPercent = 1;
1456 config.initialHeapSize = WREN_VM_HEAP_SIZE * 2;
1457 config.minHeapSize = WREN_VM_HEAP_SIZE;
1458 config.heapGrowthPercent = 10;
1463 vm = wrenNewVM(&config);
1464 wrenEnsureSlots(
vm, 4);
WrenLoadModuleResult loadModule(WrenVM *vm, const char *name)
callback for the VM to request a module be loaded from the filesystem
static void writeFn(WrenVM *vm, const char *text)
write function system callback for the Wren VM. Stdout/Stderr is Serial
void errorFn(WrenVM *vm, WrenErrorType errorType, const char *module, const int line, const char *msg)
error function system callback for the Wren VM. Stdout/Stderr is Serial
WrenForeignMethodFn FLASHMEM bindForeignMethod(WrenVM *vm, const char *module, const char *className, bool isStatic, const char *signature)
callback function for Wren to request an exported function bindings