瀏覽代碼

Merge pull request #136 from actboy168/patch-2

Compatible with Lua 5.4
Michael R. P. Ragazzon 5 年之前
父節點
當前提交
5b8f95c0fd
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Source/Lua/GlobalLuaFunctions.cpp

+ 1 - 2
Source/Lua/GlobalLuaFunctions.cpp

@@ -133,8 +133,7 @@ int LuaPrint(lua_State* L)
         lua_call(L, 1, 1);
         lua_call(L, 1, 1);
         s = lua_tostring(L, -1);  /* get result */
         s = lua_tostring(L, -1);  /* get result */
         if (s == nullptr)
         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) 
         if (i>1) 
             output += "\t";
             output += "\t";
         output += String(s);
         output += String(s);