From dba6ba812fadfef61e7adf61ff2a65e03ed36789 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 1 Jul 2016 07:43:28 +0000 Subject: MirLua: mlua_metatable rewritted git-svn-id: http://svn.miranda-ng.org/main/trunk@17055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_utils.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 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 6ee3f44186..ec08831a1d 100644 --- a/plugins/MirLua/src/mlua_utils.cpp +++ b/plugins/MirLua/src/mlua_utils.cpp @@ -79,22 +79,23 @@ int luaM_print(lua_State *L) switch (lua_type(L, i)) { case LUA_TNIL: - data.Append("nil "); + data.Append("nil"); break; case LUA_TBOOLEAN: - data.AppendFormat("%s ", lua_toboolean(L, i) ? "true" : "false"); + data.AppendFormat("%s", lua_toboolean(L, i) ? "true" : "false"); break; case LUA_TNUMBER: case LUA_TSTRING: - data.AppendFormat("%s ", lua_tostring(L, i)); + data.AppendFormat("%s", lua_tostring(L, i)); break; default: - data.AppendFormat("%s(0x%p) ", luaL_typename(L, i), lua_topointer(L, i)); + data.AppendFormat("%s(0x%p)", luaL_typename(L, i), lua_topointer(L, i)); break; } + data += '\t'; } - if (data.GetLength() >= 3) - data.Delete(data.GetLength() - 3, 3); + if (data.GetLength() >= 1) + data.Delete(data.GetLength() - 1, 1); Log(data.GetBuffer()); -- cgit v1.2.3