blob: fc10545c42fb18265a0a3d97334cfb23a5078eeb (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 | #ifndef _LUA_CORE_H_
#define _LUA_CORE_H_
class CMLua
{
private:
	lua_State *L;
	static luaL_Reg coreLib[15];
	void LoadModule(const char *name, lua_CFunction func);
	void LoadCoreModule();
	void LoadMirandaModules();
	void Load();
	void Unload();
public:
	CMLua();
	~CMLua();
	void Reload();
	void AddScriptsPath(const char *path);
	void LoadScript(const char *name);
	static WPARAM GetWParam(lua_State *L, int idx);
	static LPARAM GetLParam(lua_State *L, int idx);
	static int HookEventObjParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param);
};
#endif //_LUA_CORE_H_
 |