aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-08-15 10:48:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-08-15 10:48:53 -0300
commit433cb1d13a767023e03111fc09c46903f40366ff (patch)
treedf5d105368debb523ea838c3e0c06e60c94ae9ca /lapi.c
parentd66198719d10e393dfba57c1f4aeea307cdb49ea (diff)
downloadlua-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.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lapi.c b/lapi.c
index e3c4b088..88ed5dd6 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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);