tables of globals accessible through pseudo-index in C API

This commit is contained in:
Roberto Ierusalimschy
2001-10-31 17:58:11 -02:00
parent 46347d768e
commit af59848219
7 changed files with 31 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ldebug.c,v 1.90 2001/10/02 16:45:03 roberto Exp $
** $Id: ldebug.c,v 1.91 2001/10/25 19:14:14 roberto Exp roberto $
** Debug Interface
** See Copyright Notice in lua.h
*/
@@ -221,7 +221,7 @@ static const l_char *travtagmethods (global_State *G, const TObject *o) {
static const l_char *travglobals (lua_State *L, const TObject *o) {
Table *g = L->gt;
Table *g = hvalue(&L->gt);
int i = sizenode(g);
while (i--) {
Node *n = node(g, i);