rainmeter-studio/Library/lua/LuaManager.h

29 lines
422 B
C
Raw Normal View History

#ifndef LUA_MANAGER_H
#define LUA_MANAGER_H
#include "lua.hpp"
#include "tolua++.h"
class LuaManager
{
public:
static void Init();
static void CleanUp();
2011-01-30 15:44:48 +00:00
static lua_State* GetState() { return c_pState; }
static void ReportErrors(lua_State * L);
static void LuaLog(int nLevel, const char* format, ... );
protected:
2011-01-30 15:44:48 +00:00
static int c_RefCount;
2011-01-30 15:44:48 +00:00
static lua_State* c_pState;
};
#endif