diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-06-23 13:01:49 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-06-23 13:01:49 +0000 |
commit | 50b6a5ca2c5652fdf4e5fab69d9918c0f633cfb5 (patch) | |
tree | 47d14db48369b7aac927ab77189ec842f4ef9373 /plugins/MirLua/src/mlua.h | |
parent | 1406bb2d649a561151ea9c44f2a3da54704d3ff7 (diff) |
MirLua: reworked m_core and CMLuaScript
git-svn-id: http://svn.miranda-ng.org/main/trunk@17023 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.h')
-rw-r--r-- | plugins/MirLua/src/mlua.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/MirLua/src/mlua.h b/plugins/MirLua/src/mlua.h index c732d2c8a4..3c5e3dd769 100644 --- a/plugins/MirLua/src/mlua.h +++ b/plugins/MirLua/src/mlua.h @@ -6,8 +6,6 @@ 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
@@ -17,17 +15,17 @@ private: void SetPaths();
- static void KillLuaRefs();
-
public:
- static LIST<void> HookRefs;
- static LIST<void> ServiceRefs;
-
LIST<CMLuaScript> Scripts;
CMLua();
~CMLua();
+ operator lua_State*() const
+ {
+ return L;
+ }
+
void Load();
void Unload();
};
|