summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_utils.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-07-01 07:43:28 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-07-01 07:43:28 +0000
commitdba6ba812fadfef61e7adf61ff2a65e03ed36789 (patch)
tree25c126b497d9964d1c43a2f06030f5d4612b351b /plugins/MirLua/src/mlua_utils.cpp
parentad5f64dcd8dc7944e85208d6ef32eb5adbb4ffe6 (diff)
MirLua: mlua_metatable rewritted
git-svn-id: http://svn.miranda-ng.org/main/trunk@17055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_utils.cpp')
-rw-r--r--plugins/MirLua/src/mlua_utils.cpp13
1 files changed, 7 insertions, 6 deletions
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());