aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-07-15 15:37:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-07-15 15:37:19 -0300
commitbd5fa9cc8fdd966edc46c3de2cc420a72240ead3 (patch)
tree15f713451602e39e8f01ae4311c6c15b92f2448b /lapi.c
parent2658c94925fbc93991e854afc2e7354f225967aa (diff)
downloadlua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.tar.gz
lua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.tar.bz2
lua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.zip
new macro 'getproto'
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 7865e0c8..b05897d7 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.85 2009/07/15 17:26:14 roberto Exp roberto $ 2** $Id: lapi.c,v 2.86 2009/07/15 17:57:03 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*/
@@ -910,7 +910,7 @@ LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
910 api_checknelems(L, 1); 910 api_checknelems(L, 1);
911 o = L->top - 1; 911 o = L->top - 1;
912 if (isLfunction(o)) 912 if (isLfunction(o))
913 status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0); 913 status = luaU_dump(L, getproto(o), writer, data, 0);
914 else 914 else
915 status = 1; 915 status = 1;
916 lua_unlock(L); 916 lua_unlock(L);