diff options
| author | mpeterv <mpeterval@gmail.com> | 2015-02-25 10:44:21 +0300 |
|---|---|---|
| committer | mpeterv <mpeterval@gmail.com> | 2015-02-25 10:44:21 +0300 |
| commit | b483a2fd35b661115840b378920c28eb70169518 (patch) | |
| tree | 98d36dc3ac8838e93530dc72dd3f604d97273594 /src | |
| parent | be58bb0bf683c5c15589ecf68367a1fbaa9e0a8f (diff) | |
| download | lanes-b483a2fd35b661115840b378920c28eb70169518.tar.gz lanes-b483a2fd35b661115840b378920c28eb70169518.tar.bz2 lanes-b483a2fd35b661115840b378920c28eb70169518.zip | |
Do not strip debug info of dumped functions on Lua 5.3
Diffstat (limited to 'src')
| -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 bd1ea85..9c1d7f1 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 | } |
