lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 5d9cbdadfb04e7ce8810af7d40e0723222937024
parent 58453dc1e1cb8c77f91cb858ec9b475a945f7f3c
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 14 Aug 2000 14:58:58 -0300

cannot run symbolic execution for non-active functions

Diffstat:
Mldebug.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ldebug.c b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.33 2000/08/11 16:17:28 roberto Exp roberto $ +** $Id: ldebug.c,v 1.34 2000/08/14 17:46:27 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -253,7 +253,7 @@ int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { break; } case 'n': { - ar->namewhat = getfuncname(L, func, &ar->name); + ar->namewhat = (isactive) ? getfuncname(L, func, &ar->name) : NULL; if (ar->namewhat == NULL) lua_getname(L, func, ar); break;