summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-21 20:38:33 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-21 20:38:33 +0000
commit932f5569c467683d3b95c45772da903d3117dc11 (patch)
tree73162154b5cbfc1b2826f58015dba8720732e9b5 /plugins/MirLua/src/mlua.cpp
parent28e58637ba0b6194a2c95adf35f7581d5481a441 (diff)
MirLua: some changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14311 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua.cpp')
-rw-r--r--plugins/MirLua/src/mlua.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/plugins/MirLua/src/mlua.cpp b/plugins/MirLua/src/mlua.cpp
index f9772e0021..5e720dba8e 100644
--- a/plugins/MirLua/src/mlua.cpp
+++ b/plugins/MirLua/src/mlua.cpp
@@ -89,47 +89,7 @@ void CMLua::LoadScript(const char *path)
printf("%s\n", lua_tostring(L, -1));
}
-WPARAM CMLua::GetWParam(lua_State *L, int idx)
-{
- WPARAM wParam = NULL;
- switch (lua_type(L, idx))
- {
- case LUA_TBOOLEAN:
- wParam = lua_toboolean(L, idx);
- break;
- case LUA_TNUMBER:
- wParam = lua_tonumber(L, idx);
- break;
- case LUA_TSTRING:
- wParam = (LPARAM)mir_utf8decode((char*)lua_tostring(L, idx), NULL);
- break;
- case LUA_TUSERDATA:
- wParam = (WPARAM)lua_touserdata(L, idx);
- break;
- }
- return wParam;
-}
-LPARAM CMLua::GetLParam(lua_State *L, int idx)
-{
- LPARAM lParam = NULL;
- switch (lua_type(L, idx))
- {
- case LUA_TBOOLEAN:
- lParam = lua_toboolean(L, idx);
- break;
- case LUA_TNUMBER:
- lParam = lua_tonumber(L, idx);
- break;
- case LUA_TSTRING:
- lParam = (LPARAM)mir_utf8decode((char*)lua_tostring(L, idx), NULL);
- break;
- case LUA_TUSERDATA:
- lParam = (LPARAM)lua_touserdata(L, idx);
- break;
- }
- return lParam;
-}
int CMLua::HookEventObjParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param)
{