From d39bb51faaa0467ad6a0f5b4ee2ee8400d620727 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 22 May 2015 14:48:19 -0300 Subject: bug: interpreter cannot pop activation frame before calling return hook (as it may want to access local variables active by the end of the function) --- ldo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldo.h') diff --git a/ldo.h b/ldo.h index 329a1684..d4d4af72 100644 --- a/ldo.h +++ b/ldo.h @@ -1,5 +1,5 @@ /* -** $Id: ldo.h,v 2.20 2011/11/29 15:55:08 roberto Exp roberto $ +** $Id: ldo.h,v 2.21 2014/10/25 11:50:46 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -34,7 +34,7 @@ LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults, int allowyield); LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, ptrdiff_t oldtop, ptrdiff_t ef); -LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult); +LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult, int nres); LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize); LUAI_FUNC void luaD_growstack (lua_State *L, int n); LUAI_FUNC void luaD_shrinkstack (lua_State *L); -- cgit v1.2.3-55-g6feb