`const' array in protos breaked in 3 arrays (for strings, numbers, and
prototypes).
This commit is contained in:
5
ldebug.c
5
ldebug.c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: ldebug.c,v 1.4 1999/12/30 18:28:40 roberto Exp roberto $
|
||||
** $Id: ldebug.c,v 1.5 2000/01/19 12:00:45 roberto Exp roberto $
|
||||
** Debug Interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -94,8 +94,7 @@ static const char *luaG_getname (lua_State *L, const char **name, StkId top) {
|
||||
if (ttype(f) == LUA_T_LCLMARK)
|
||||
f = protovalue(f);
|
||||
LUA_ASSERT(L, ttype(f) == LUA_T_LMARK, "must be a Lua function");
|
||||
LUA_ASSERT(L, ttype(&tfvalue(f)->consts[i]) == LUA_T_STRING, "");
|
||||
*name = tsvalue(&tfvalue(f)->consts[i])->str;
|
||||
*name = tfvalue(f)->strcnst[i]->str;
|
||||
return luaO_typename(f+2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user