From b0f2b288a6b860374b9578d4c51329fc9cd43022 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 25 Nov 2009 13:27:51 -0200 Subject: new scheme for debug info about tail calls: no more 'fake' stack entries, but stack entry knows whether it was tail called --- lbaselib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 16b58cf5..4b4fe6c5 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.225 2009/11/19 16:26:29 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.226 2009/11/24 12:05:44 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -119,8 +119,6 @@ static void getfunc (lua_State *L, int opt) { if (lua_getstack(L, level, &ar) == 0) luaL_argerror(L, 1, "invalid level"); lua_getinfo(L, "f", &ar); - if (lua_isnil(L, -1)) - luaL_error(L, "no function environment for tail call at level %d", level); } } -- cgit v1.2.3-55-g6feb