diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-02-18 16:44:47 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-02-18 16:44:47 +0000 |
commit | 5c2a6bf8417b1d90d9937114b52d4e95c969dfc2 (patch) | |
tree | e771a735559dc7cdd0b441cfa5957e39b116e755 /plugins/MirLua/Modules | |
parent | c9bf09d88ffe7db1c2a3e2cdc3cc3085573cb23c (diff) |
MirLua: bug fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@16304 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/Modules')
-rw-r--r-- | plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp | 10 | ||||
-rw-r--r-- | plugins/MirLua/Modules/m_msg_buttonsbar/src/stdafx.h | 2 |
2 files changed, 1 insertions, 11 deletions
diff --git a/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp b/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp index 00ba7a7419..a52338d9ad 100644 --- a/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp +++ b/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp @@ -131,20 +131,10 @@ static int bcd__index(lua_State *L) return 1;
}
-static int bcd_topointer(lua_State *L)
-{
- CustomButtonClickData *bcd = *(CustomButtonClickData**)luaL_checkudata(L, 1, MT_CUSTOMBUTTONCLICKDATA);
-
- lua_pushlightuserdata(L, bcd);
-
- return 1;
-}
-
static luaL_Reg bcdMeta[] =
{
{ "__call", bcd__call },
{ "__index", bcd__index },
- { "topointer", bcd_topointer },
{ NULL, NULL }
};
diff --git a/plugins/MirLua/Modules/m_msg_buttonsbar/src/stdafx.h b/plugins/MirLua/Modules/m_msg_buttonsbar/src/stdafx.h index 600f0d955a..89ca58c4fd 100644 --- a/plugins/MirLua/Modules/m_msg_buttonsbar/src/stdafx.h +++ b/plugins/MirLua/Modules/m_msg_buttonsbar/src/stdafx.h @@ -3,7 +3,7 @@ #include <windows.h>
-#include <m_lua.h>
+#include <lua.hpp>
#include <m_core.h>
#include <m_utils.h>
|