diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2015-04-12 13:50:20 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2015-04-12 13:50:20 +0200 |
commit | 4f51dbba76b5a486d6935c2b9a2ac9086b9ea64e (patch) | |
tree | df7c906909dfffc4857ad0a98028f443e79852eb | |
parent | 42c211c9ce44e117433416002450ed5db7745e79 (diff) | |
parent | b483a2fd35b661115840b378920c28eb70169518 (diff) | |
download | lanes-4f51dbba76b5a486d6935c2b9a2ac9086b9ea64e.tar.gz lanes-4f51dbba76b5a486d6935c2b9a2ac9086b9ea64e.tar.bz2 lanes-4f51dbba76b5a486d6935c2b9a2ac9086b9ea64e.zip |
Merge pull request #115 from mpeterv/fix-lua-dump
Do not strip debug info of dumped functions on Lua 5.3
-rw-r--r-- | src/tools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools.c b/src/tools.c index 77f6abe..5350e75 100644 --- a/src/tools.c +++ b/src/tools.c | |||
@@ -286,7 +286,7 @@ FuncSubType luaG_getfuncsubtype( lua_State *L, int _i) | |||
286 | // the provided writer fails with code 666 | 286 | // the provided writer fails with code 666 |
287 | // therefore, anytime we get 666, this means that lua_dump() attempted a dump | 287 | // therefore, anytime we get 666, this means that lua_dump() attempted a dump |
288 | // all other cases mean this is either a C or LuaJIT-fast function | 288 | // all other cases mean this is either a C or LuaJIT-fast function |
289 | dumpres = lua503_dump( L, dummy_writer, NULL, 1); | 289 | dumpres = lua503_dump( L, dummy_writer, NULL, 0); |
290 | lua_pop( L, mustpush); | 290 | lua_pop( L, mustpush); |
291 | if( dumpres == 666) | 291 | if( dumpres == 666) |
292 | { | 292 | { |
@@ -1192,7 +1192,7 @@ static void inter_copy_func( struct s_Universe* U, lua_State* L2, uint_t L2_cach | |||
1192 | // "value returned is the error code returned by the last call | 1192 | // "value returned is the error code returned by the last call |
1193 | // to the writer" (and we only return 0) | 1193 | // to the writer" (and we only return 0) |
1194 | // not sure this could ever fail but for memory shortage reasons | 1194 | // not sure this could ever fail but for memory shortage reasons |
1195 | if( lua503_dump( L, buf_writer, &b, 1) != 0) | 1195 | if( lua503_dump( L, buf_writer, &b, 0) != 0) |
1196 | { | 1196 | { |
1197 | luaL_error( L, "internal error: function dump failed."); | 1197 | luaL_error( L, "internal error: function dump failed."); |
1198 | } | 1198 | } |