diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-02-18 10:40:02 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-02-18 10:40:02 -0200 |
commit | 7d45a5f48ff32a4e09a1734de23823943d6a6b28 (patch) | |
tree | de7bef1faf37d9b639928e5269e89d7112b5b6fa /lstate.h | |
parent | 73d764024451c24bc43b8e5102fe90974a86b7f4 (diff) | |
download | lua-7d45a5f48ff32a4e09a1734de23823943d6a6b28.tar.gz lua-7d45a5f48ff32a4e09a1734de23823943d6a6b28.tar.bz2 lua-7d45a5f48ff32a4e09a1734de23823943d6a6b28.zip |
C functions and userdata also have environments
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.13 2005/01/18 17:18:09 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.14 2005/02/11 20:03:35 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -116,6 +116,7 @@ struct lua_State { | |||
116 | int hookcount; | 116 | int hookcount; |
117 | lua_Hook hook; | 117 | lua_Hook hook; |
118 | TValue _gt; /* table of globals */ | 118 | TValue _gt; /* table of globals */ |
119 | TValue env; /* temporary place for environments */ | ||
119 | GCObject *openupval; /* list of open upvalues in this stack */ | 120 | GCObject *openupval; /* list of open upvalues in this stack */ |
120 | GCObject *gclist; | 121 | GCObject *gclist; |
121 | struct lua_longjmp *errorJmp; /* current error recover point */ | 122 | struct lua_longjmp *errorJmp; /* current error recover point */ |