This commit is contained in:
Antoine Pilote
2021-07-19 00:09:00 -04:00
parent c3c995bc5f
commit 93e58db870
15 changed files with 500 additions and 388 deletions

View File

@@ -0,0 +1,16 @@
#include "VM.h"
namespace Nuake {
VM::VM()
{
WrenConfiguration config;
wrenInitConfiguration(&config);
//config.loadModuleFn = &myLoadModule;
//config.errorFn = &errorFn;
//config.writeFn = &writeFn;
//config.bindForeignMethodFn = &bindForeignMethod;
m_VM = wrenNewVM(&config);
}
}

13
Nuake/src/Scripting/VM.h Normal file
View File

@@ -0,0 +1,13 @@
#pragma once
#include <src/Vendors/wren/src/include/wren.h>
namespace Nuake {
class VM
{
VM();
inline WrenVM* GetVM();
private:
WrenVM* m_VM;
};
}