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/mlua_utils.cpp | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'plugins/MirLua/src/mlua_utils.cpp') diff --git a/plugins/MirLua/src/mlua_utils.cpp b/plugins/MirLua/src/mlua_utils.cpp index c253ad244c..7ff2a32127 100644 --- a/plugins/MirLua/src/mlua_utils.cpp +++ b/plugins/MirLua/src/mlua_utils.cpp @@ -16,7 +16,7 @@ void ShowNotification(const char *caption, const char *message, int flags, MCONT return; } - ::MessageBoxA(NULL, message, caption, MB_OK | flags); + MessageBoxA(NULL, message, caption, MB_OK | flags); } void ReportError(const char *message) @@ -33,27 +33,9 @@ int luaM_atpanic(lua_State *L) return 0; } -int luaM_trace(lua_State *L) -{ - lua_getglobal(L, "debug"); - lua_getfield(L, -1, "traceback"); - lua_pushvalue(L, 1); - lua_pushinteger(L, 2); - lua_call(L, 2, 1); - - return 1; -} - int luaM_pcall(lua_State *L, int n, int r) { - int f = 0; - /*if (db_get_b(NULL, MODULE, "AddTaraceback", 0)) - { - f = -(n + 2); - lua_pushcfunction(L, luaM_trace); - lua_insert(L, f); - }*/ - int res = lua_pcall(L, n, r, f); + int res = lua_pcall(L, n, r, 0); if (res != LUA_OK) ReportError(lua_tostring(L, -1)); return res; -- cgit v1.2.3