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 committed Oct 19, 2020
1 parent ff920d6 commit c71a1b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Lua/GlobalLuaFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c71a1b1

Please sign in to comment.