diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-06-16 07:22:55 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-06-16 07:22:55 +0000 |
commit | 7d0a69bb237e015049c2fe8d26d9ad1a0b24cc89 (patch) | |
tree | fc7020863a0fe76b49bfe83913fb208c71c315e6 /plugins | |
parent | 4958934c982cada1dc6b4abe17a7e53fde114632 (diff) |
MirLua: module returned back
git-svn-id: http://svn.miranda-ng.org/main/trunk@16987 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/MirLua/src/m_options.cpp | 4 | ||||
-rw-r--r-- | plugins/MirLua/src/mlua_module_loader.cpp | 2 | ||||
-rw-r--r-- | plugins/MirLua/src/mlua_script.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_options.cpp b/plugins/MirLua/src/m_options.cpp index 0ecce9c864..f41d4b6006 100644 --- a/plugins/MirLua/src/m_options.cpp +++ b/plugins/MirLua/src/m_options.cpp @@ -64,14 +64,14 @@ void MakeOptionDialogPage(lua_State *L, OPTIONSDIALOGPAGE &odp) odp.ptszTab = mir_utf8decodeT((char*)lua_tostring(L, -1));
lua_pop(L, 1);
- int onInitDialogRef = 0;
+ int onInitDialogRef = LUA_NOREF;
lua_getfield(L, -1, "OnInitDialog");
if (lua_isfunction(L, -1))
onInitDialogRef = luaL_ref(L, LUA_REGISTRYINDEX);
else
lua_pop(L, 1);
- int onApplyRef = 0;
+ int onApplyRef = LUA_NOREF;
lua_getfield(L, -1, "OnApply");
if (lua_isfunction(L, -1))
onApplyRef = luaL_ref(L, LUA_REGISTRYINDEX);
diff --git a/plugins/MirLua/src/mlua_module_loader.cpp b/plugins/MirLua/src/mlua_module_loader.cpp index 5d017e6a75..c7e64a5b0a 100644 --- a/plugins/MirLua/src/mlua_module_loader.cpp +++ b/plugins/MirLua/src/mlua_module_loader.cpp @@ -34,7 +34,7 @@ void CMLuaModuleLoader::LoadModules() Preload(MLUA_GENMENU, luaopen_m_genmenu);
Preload(MLUA_HOTKEYS, luaopen_m_hotkeys);
Preload(MLUA_MESSAGE, luaopen_m_message);
- //Preload(MLUA_OPTIONS, luaopen_m_options);
+ Preload(MLUA_OPTIONS, luaopen_m_options);
Preload(MLUA_PROTOCOLS, luaopen_m_protocols);
Preload(MLUA_SOUNDS, luaopen_m_sounds);
}
diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index 9676f36192..6c92c354d8 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -3,7 +3,7 @@ #define SCRIPT "Script"
CMLuaScript::CMLuaScript(lua_State *L, const TCHAR *path)
- : L(L), status(None), unloadRef(0)
+ : L(L), status(None), unloadRef(LUA_NOREF)
{
mir_tstrcpy(filePath, path);
|