From 5d9cbdadfb04e7ce8810af7d40e0723222937024 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 14 Aug 2000 14:59:20 -0300 Subject: cannot run symbolic execution for non-active functions --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldebug.c b/ldebug.c index 136afc5a..b2675892 100644 --- 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; -- cgit v1.2.3-55-g6feb