diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-01-02 20:06:32 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-01-02 20:06:32 +0000 |
commit | 7540dae59505b5c5d38507a05116c493cce628cb (patch) | |
tree | 8e27782c0a968ebd2c641d1eb241f2de6f8fca84 /plugins/MirLua/src/mlua_utils.cpp | |
parent | cc5d3042679c7afbbf510e4f3e8e9937b2ce0233 (diff) |
MirLua: metatable fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15997 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_utils.cpp')
-rw-r--r-- | plugins/MirLua/src/mlua_utils.cpp | 22 |
1 files changed, 2 insertions, 20 deletions
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;
|