From 55b1f7fafef7085638c4c8604b248bbe9fe08124 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 17 Apr 2016 15:43:34 +0000 Subject: MirLua: - added function topointer into _G - overrided tonumber to support pointers - api methods is only support light userdata as wparam/lparam git-svn-id: http://svn.miranda-ng.org/main/trunk@16697 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/stdafx.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/MirLua/src/stdafx.h') diff --git a/plugins/MirLua/src/stdafx.h b/plugins/MirLua/src/stdafx.h index a8a1ba4ff3..48218e8651 100644 --- a/plugins/MirLua/src/stdafx.h +++ b/plugins/MirLua/src/stdafx.h @@ -34,6 +34,7 @@ #include #include +#include #include "version.h" #include "resource.h" @@ -110,7 +111,12 @@ int luaM_print(lua_State *L); int luaM_toansi(lua_State *L); int luaM_toucs2(lua_State *L); -int luaM_ptr2number(lua_State *L); + +int luaM_topointer(lua_State *L); +int luaM_tonumber(lua_State *L); + +WPARAM luaM_towparam(lua_State *L, int idx); +LPARAM luaM_tolparam(lua_State *L, int idx); bool luaM_toboolean(lua_State *L, int idx); -- cgit v1.2.3