diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-15 10:48:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-15 10:48:53 -0300 |
commit | 433cb1d13a767023e03111fc09c46903f40366ff (patch) | |
tree | df5d105368debb523ea838c3e0c06e60c94ae9ca /lapi.c | |
parent | d66198719d10e393dfba57c1f4aeea307cdb49ea (diff) | |
download | lua-433cb1d13a767023e03111fc09c46903f40366ff.tar.gz lua-433cb1d13a767023e03111fc09c46903f40366ff.tar.bz2 lua-433cb1d13a767023e03111fc09c46903f40366ff.zip |
no more checks for non-default compilation options + luaU_dump has
new option to strip debug info
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.239 2003/05/14 21:06:56 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.240 2003/07/07 13:34:25 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -732,10 +732,8 @@ LUA_API int lua_dump (lua_State *L, lua_Chunkwriter writer, void *data) { | |||
732 | lua_lock(L); | 732 | lua_lock(L); |
733 | api_checknelems(L, 1); | 733 | api_checknelems(L, 1); |
734 | o = L->top - 1; | 734 | o = L->top - 1; |
735 | if (isLfunction(o) && clvalue(o)->l.nupvalues == 0) { | 735 | if (isLfunction(o) && clvalue(o)->l.nupvalues == 0) |
736 | luaU_dump(L, clvalue(o)->l.p, writer, data); | 736 | status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0); |
737 | status = 1; | ||
738 | } | ||
739 | else | 737 | else |
740 | status = 0; | 738 | status = 0; |
741 | lua_unlock(L); | 739 | lua_unlock(L); |