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: lstate.h,v 1.61 2001/10/17 21:12:57 roberto Exp $
** $Id: lstate.h,v 1.62 2001/10/25 19:12:21 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -80,7 +80,7 @@ struct lua_State {
StkId top; /* first free slot in the stack */
CallInfo *ci; /* call info for current function */
StkId stack_last; /* last free slot in the stack */
Table *gt; /* table for globals */
TObject gt; /* table for globals */
global_State *G;
StkId stack; /* stack base */
int stacksize;