diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-01 16:22:56 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-12-01 16:22:56 -0200 |
commit | af850484a9e01b46b04e4c666f9a9e91308d81c7 (patch) | |
tree | 38d03f647ddc95d430e4600e432598b7b9d07cd0 /lstate.h | |
parent | 1d10acb35500df47d6052164e6c56476f520232e (diff) | |
download | lua-af850484a9e01b46b04e4c666f9a9e91308d81c7.tar.gz lua-af850484a9e01b46b04e4c666f9a9e91308d81c7.tar.bz2 lua-af850484a9e01b46b04e4c666f9a9e91308d81c7.zip |
default metatable can be NULL
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 1.113 2003/11/18 14:55:11 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.114 2003/12/01 16:33:30 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 | */ |
@@ -42,9 +42,6 @@ | |||
42 | struct lua_longjmp; /* defined in ldo.c */ | 42 | struct lua_longjmp; /* defined in ldo.c */ |
43 | 43 | ||
44 | 44 | ||
45 | /* default meta table (both for tables and udata) */ | ||
46 | #define defaultmeta(L) (&G(L)->_defaultmeta) | ||
47 | |||
48 | /* table of globals */ | 45 | /* table of globals */ |
49 | #define gt(L) (&L->_gt) | 46 | #define gt(L) (&L->_gt) |
50 | 47 | ||
@@ -113,7 +110,6 @@ typedef struct global_State { | |||
113 | lu_mem nblocks; /* number of `bytes' currently allocated */ | 110 | lu_mem nblocks; /* number of `bytes' currently allocated */ |
114 | lua_CFunction panic; /* to be called in unprotected errors */ | 111 | lua_CFunction panic; /* to be called in unprotected errors */ |
115 | TObject _registry; | 112 | TObject _registry; |
116 | TObject _defaultmeta; | ||
117 | struct lua_State *mainthread; | 113 | struct lua_State *mainthread; |
118 | Node dummynode[1]; /* common node array for all empty tables */ | 114 | Node dummynode[1]; /* common node array for all empty tables */ |
119 | TString *tmname[TM_N]; /* array with tag-method names */ | 115 | TString *tmname[TM_N]; /* array with tag-method names */ |