Zepha/zeus/lua_api/LuaParser.h
aurailus 67b3a5086e LuaParser class which loads a Lua File.
LuaApiInterface header that is overrided by Lua api functions
l_Average class to test LuaApiInterface
2018-12-17 20:05:00 -08:00

30 lines
442 B
C++

//
// Created by aurailus on 17/12/18.
//
#ifndef ZEUS_LUAPARSER_H
#define ZEUS_LUAPARSER_H
#include <string>
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
class LuaParser {
public:
explicit LuaParser(std::string luaFileLoc);
void regGlobalModule();
void regFunc(const char *functionName, lua_CFunction any);
~LuaParser();
private:
lua_State* L;
};
#endif //ZEUS_LUAPARSER_H