aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-20 17:41:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-20 17:41:46 -0300
commit3941af53adee868e2cccfb9b85783aba9ac311c1 (patch)
tree8b6295c8aefacf286c13c7d78b1d2a91421ce2b1 /lobject.h
parent5610fdd776edd0de71864f79d50b4526df861d75 (diff)
downloadlua-3941af53adee868e2cccfb9b85783aba9ac311c1.tar.gz
lua-3941af53adee868e2cccfb9b85783aba9ac311c1.tar.bz2
lua-3941af53adee868e2cccfb9b85783aba9ac311c1.zip
first implementation of independent global table per function
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index 8438881f..75610c99 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 1.134 2002/06/12 14:56:22 roberto Exp roberto $ 2** $Id: lobject.h,v 1.135 2002/06/13 13:39:55 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -178,6 +178,7 @@ typedef struct LClosure {
178 lu_byte marked; 178 lu_byte marked;
179 union Closure *next; /* first four fields must be equal to CClosure!! */ 179 union Closure *next; /* first four fields must be equal to CClosure!! */
180 struct Proto *p; 180 struct Proto *p;
181 TObject g; /* global table for this closure */
181 UpVal *upvals[1]; 182 UpVal *upvals[1];
182} LClosure; 183} LClosure;
183 184
@@ -189,7 +190,7 @@ typedef union Closure {
189 190
190 191
191#define iscfunction(o) (ttype(o) == LUA_TFUNCTION && clvalue(o)->c.isC) 192#define iscfunction(o) (ttype(o) == LUA_TFUNCTION && clvalue(o)->c.isC)
192 193#define isLfunction(o) (ttype(o) == LUA_TFUNCTION && !clvalue(o)->c.isC)
193 194
194 195
195/* 196/*