From 7540dae59505b5c5d38507a05116c493cce628cb Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 2 Jan 2016 20:06:32 +0000 Subject: MirLua: metatable fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15997 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_windows.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugins/MirLua/src/m_windows.cpp') diff --git a/plugins/MirLua/src/m_windows.cpp b/plugins/MirLua/src/m_windows.cpp index 160f632974..b90b1d808f 100644 --- a/plugins/MirLua/src/m_windows.cpp +++ b/plugins/MirLua/src/m_windows.cpp @@ -72,6 +72,8 @@ static int lua_MessageBox(lua_State *L) return 1; } +/***********************************************/ + static int lua_ShellExecute(lua_State *L) { ptrT command(mir_utf8decodeT(lua_tostring(L, 1))); @@ -84,6 +86,8 @@ static int lua_ShellExecute(lua_State *L) return 0; } +/***********************************************/ + static int lua_FindIterator(lua_State *L) { HANDLE hFind = lua_touserdata(L, lua_upvalueindex(1)); @@ -166,6 +170,8 @@ static int lua_GetKeyState(lua_State *L) return 1; } +/***********************************************/ + static int lua_GetIniValue(lua_State *L) { ptrT path(mir_utf8decodeT(luaL_checkstring(L, 1))); @@ -221,6 +227,8 @@ static int lua_DeleteIniValue(lua_State *L) return 1; } +/***********************************************/ + static int lua_GetRegValue(lua_State *L) { HKEY hRootKey = (HKEY)lua_touserdata(L, 1); @@ -360,6 +368,8 @@ static int lua_DeleteRegValue(lua_State *L) return 1; } +/***********************************************/ + static luaL_Reg winApi[] = { { "MessageBox", lua_MessageBox }, -- cgit v1.2.3