diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-08 10:53:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-08 10:53:33 -0300 |
commit | 3cadc37f470df50deb5c920b028125b8bb6c316b (patch) | |
tree | a2a448ef80bddb0ddef2581d0692ccec3de5b159 /lobject.h | |
parent | bb1146dc3986c6f123ed6d85a26694ca8d56f94a (diff) | |
download | lua-3cadc37f470df50deb5c920b028125b8bb6c316b.tar.gz lua-3cadc37f470df50deb5c920b028125b8bb6c316b.tar.bz2 lua-3cadc37f470df50deb5c920b028125b8bb6c316b.zip |
no more 'Proto' objects on the stack. Protos are anchored on outer
Protos or on a Closure, which must be created before the Proto.
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.65 2012/01/20 22:05:50 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.68 2012/01/25 21:05:40 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 | */ |
@@ -236,11 +236,6 @@ typedef struct lua_TValue TValue; | |||
236 | val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TTABLE)); \ | 236 | val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TTABLE)); \ |
237 | checkliveness(G(L),io); } | 237 | checkliveness(G(L),io); } |
238 | 238 | ||
239 | #define setptvalue(L,obj,x) \ | ||
240 | { TValue *io=(obj); \ | ||
241 | val_(io).gc=cast(GCObject *, (x)); settt_(io, ctb(LUA_TPROTO)); \ | ||
242 | checkliveness(G(L),io); } | ||
243 | |||
244 | #define setdeadvalue(obj) settt_(obj, LUA_TDEADKEY) | 239 | #define setdeadvalue(obj) settt_(obj, LUA_TDEADKEY) |
245 | 240 | ||
246 | 241 | ||