From ee37779cc2bdb12315b962af3df2501fdcc68089 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 24 Jun 2016 17:43:57 +0000 Subject: temporary revert git-svn-id: http://svn.miranda-ng.org/main/trunk@17032 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'plugins/MirLua/src/mlua.h') diff --git a/plugins/MirLua/src/mlua.h b/plugins/MirLua/src/mlua.h index 3c5e3dd769..c732d2c8a4 100644 --- a/plugins/MirLua/src/mlua.h +++ b/plugins/MirLua/src/mlua.h @@ -6,6 +6,8 @@ struct HandleRefParam HANDLE h; int ref; lua_State *L; + HandleRefParam(HANDLE h) : L(NULL), h(h), ref(0) { } + HandleRefParam(lua_State *L, HANDLE h, int ref = 0) : L(L), h(h), ref(ref) { } }; class CMLua @@ -15,17 +17,17 @@ private: void SetPaths(); + static void KillLuaRefs(); + public: + static LIST HookRefs; + static LIST ServiceRefs; + LIST Scripts; CMLua(); ~CMLua(); - operator lua_State*() const - { - return L; - } - void Load(); void Unload(); }; -- cgit v1.2.3