diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 15:37:19 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 15:37:19 -0300 |
commit | bd5fa9cc8fdd966edc46c3de2cc420a72240ead3 (patch) | |
tree | 15f713451602e39e8f01ae4311c6c15b92f2448b /lapi.c | |
parent | 2658c94925fbc93991e854afc2e7354f225967aa (diff) | |
download | lua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.tar.gz lua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.tar.bz2 lua-bd5fa9cc8fdd966edc46c3de2cc420a72240ead3.zip |
new macro 'getproto'
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |