diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-07-01 07:43:28 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-07-01 07:43:28 +0000 |
commit | dba6ba812fadfef61e7adf61ff2a65e03ed36789 (patch) | |
tree | 25c126b497d9964d1c43a2f06030f5d4612b351b /plugins/MirLua/src/mlua_utils.cpp | |
parent | ad5f64dcd8dc7944e85208d6ef32eb5adbb4ffe6 (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.cpp | 13 |
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());
|