aboutsummaryrefslogtreecommitdiff
path: root/common/lua/lbaselib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/lua/lbaselib.cpp')
-rw-r--r--common/lua/lbaselib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/lua/lbaselib.cpp b/common/lua/lbaselib.cpp
index ec044970ad..22af019c0a 100644
--- a/common/lua/lbaselib.cpp
+++ b/common/lua/lbaselib.cpp
@@ -5,6 +5,8 @@
*/
+#define FORBIDDEN_SYMBOL_EXCEPTION_fputs
+#define FORBIDDEN_SYMBOL_EXCEPTION_stdout
#include "common/util.h"
@@ -37,8 +39,11 @@ static int luaB_print (lua_State *L) {
if (s == NULL)
return luaL_error(L, LUA_QL("tostring") " must return a string to "
LUA_QL("print"));
+ if (i>1) fputs("\t", stdout);
+ fputs(s, stdout);
lua_pop(L, 1); /* pop result */
}
+ fputs("\n", stdout);
return 0;
}