2
0
Эх сурвалжийг харах

Merge pull request #136 from actboy168/patch-2

Compatible with Lua 5.4
Michael R. P. Ragazzon 5 жил өмнө
parent
commit
5b8f95c0fd

+ 1 - 2
Source/Lua/GlobalLuaFunctions.cpp

@@ -133,8 +133,7 @@ int LuaPrint(lua_State* L)
         lua_call(L, 1, 1);
         s = lua_tostring(L, -1);  /* get result */
         if (s == nullptr)
-            return luaL_error(L, LUA_QL("tostring") " must return a string to "
-                                 LUA_QL("print"));
+            return luaL_error(L, "'tostring' must return a string to 'print'");
         if (i>1) 
             output += "\t";
         output += String(s);