Skip to content

Commit

Permalink
Remove LUA_QL
Browse files Browse the repository at this point in the history
Because Lua5.4 has not removed LUA_QL
  • Loading branch information
actboy168 authored and slipher committed Dec 11, 2021
1 parent c170c24 commit 2f609aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Core/Lua/GlobalLuaFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,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);
Expand Down

0 comments on commit 2f609aa

Please sign in to comment.