`const' array in protos breaked in 3 arrays (for strings, numbers, and

prototypes).
This commit is contained in:
Roberto Ierusalimschy
2000-01-25 11:57:18 -02:00
parent 99e340b2ba
commit d11e5adf55
7 changed files with 86 additions and 80 deletions

View File

@@ -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);
}
}