LuaYard/LuaYard.cpp

21 lines
347 B
C++
Raw Normal View History

2019-08-06 20:36:04 +08:00
#include <iostream>
#include <string>
#include "LuaEngine.h"
using namespace std;
int main()
{
do {
LuaVM L;
InitEngine(L);
cout << "<ENGINE> Started." << endl;
if (luaL_dofile(L, "code/init.lua"))
{
cout << lua_tostring(L, -1) << endl;
}
StartEngine(L);
cout << "<ENGINE> Stopped." << endl;
} while (0);
StopEngine();
2019-08-06 20:36:04 +08:00
}