From b483a2fd35b661115840b378920c28eb70169518 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Wed, 25 Feb 2015 10:44:21 +0300 Subject: Do not strip debug info of dumped functions on Lua 5.3 --- src/tools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools.c b/src/tools.c index bd1ea85..9c1d7f1 100644 --- a/src/tools.c +++ b/src/tools.c @@ -286,7 +286,7 @@ FuncSubType luaG_getfuncsubtype( lua_State *L, int _i) // the provided writer fails with code 666 // therefore, anytime we get 666, this means that lua_dump() attempted a dump // all other cases mean this is either a C or LuaJIT-fast function - dumpres = lua503_dump( L, dummy_writer, NULL, 1); + dumpres = lua503_dump( L, dummy_writer, NULL, 0); lua_pop( L, mustpush); if( dumpres == 666) { @@ -1192,7 +1192,7 @@ static void inter_copy_func( struct s_Universe* U, lua_State* L2, uint_t L2_cach // "value returned is the error code returned by the last call // to the writer" (and we only return 0) // not sure this could ever fail but for memory shortage reasons - if( lua503_dump( L, buf_writer, &b, 1) != 0) + if( lua503_dump( L, buf_writer, &b, 0) != 0) { luaL_error( L, "internal error: function dump failed."); } -- cgit v1.2.3-55-g6feb