mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
29 lines
422 B
C++
29 lines
422 B
C++
#ifndef LUA_MANAGER_H
|
|
#define LUA_MANAGER_H
|
|
|
|
#include "lua.hpp"
|
|
#include "tolua++.h"
|
|
|
|
class LuaManager
|
|
{
|
|
public:
|
|
|
|
static void Init();
|
|
|
|
static void CleanUp();
|
|
|
|
static lua_State* GetState() { return c_pState; }
|
|
|
|
static void ReportErrors(lua_State * L);
|
|
|
|
static void LuaLog(int nLevel, const char* format, ... );
|
|
|
|
protected:
|
|
|
|
static int c_RefCount;
|
|
|
|
static lua_State* c_pState;
|
|
};
|
|
|
|
#endif
|