[Tile-serving] [openstreetmap/osm2pgsql] luaL_traceback is not supported in Lua 5.1, except for LuaJIT (#1153)

mmd notifications at github.com
Mon May 4 19:27:46 UTC 2020


@mmd-osm commented on this pull request.



> @@ -158,11 +159,16 @@ static int pcall_error_traceback_handler(lua_State *lua_state)
 // wrapper function for lua_pcall to include a stack traceback
 int luaX_pcall(lua_State *lua_state, int narg, int nres)
 {
+// Lua 5.1 doesn't support luaL_traceback, unless LuaJIT is used
+#if LUA_VERSION_NUM < 502 && HAVE_LUAJIT == 0

I think I would change this to `#if LUA_VERSION_NUM < 502 && !defined(HAVE_LUAJIT)`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1153#discussion_r419673895
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200504/c7330962/attachment.htm>


More information about the Tile-serving mailing list