l_print update
This commit is contained in:
@@ -396,12 +396,12 @@ static int l_print(lua_State* L) {
|
|||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
return luaL_error(L, LUA_QL("tostring") " must return a string to "
|
return luaL_error(L, LUA_QL("tostring") " must return a string to "
|
||||||
LUA_QL("print"));
|
LUA_QL("print"));
|
||||||
if (i>1) fputs("\t", stdout);
|
if (i > 1)
|
||||||
fputs(s, stdout);
|
std::cout << "\t";
|
||||||
|
std::cout << s;
|
||||||
lua_pop(L, 1); /* pop result */
|
lua_pop(L, 1); /* pop result */
|
||||||
}
|
}
|
||||||
fputs("\n", stdout);
|
std::cout << std::endl;
|
||||||
fflush(stdout); /* Added flush */
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user