From c71a1b14b4175096c148fd6d64d9c32d8396d203 Mon Sep 17 00:00:00 2001 From: actboy168 Date: Mon, 19 Oct 2020 15:28:03 +0800 Subject: [PATCH] Remove LUA_QL Because Lua5.4 has not removed LUA_QL --- Source/Lua/GlobalLuaFunctions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Lua/GlobalLuaFunctions.cpp b/Source/Lua/GlobalLuaFunctions.cpp index 4a7240116..459c430a1 100644 --- a/Source/Lua/GlobalLuaFunctions.cpp +++ b/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);