LuaYard/LuaYard.cpp

16 lines
248 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()
{
LuaVM L;
InitEngine(L);
if (luaL_dofile(L, "code/game.lua"))
{
cout << lua_tostring(L, -1) << endl;
}
cout << "<ENGINE> Stopped." << endl;
}