2
0
Эх сурвалжийг харах

cannot run symbolic execution for non-active functions

Roberto Ierusalimschy 25 жил өмнө
parent
commit
5d9cbdadfb
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      ldebug.c

+ 2 - 2
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;