aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-19 11:12:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-19 11:12:31 -0300
commitdc07719b0dbc4f2df0f42e34e18be1e0ac4fa2c3 (patch)
tree9f9a73b2bccb0b7bf07ac32476e1127f46d222d9 /lstate.h
parent9cdf6b7082c49e6bf7daf8c7c4c649bcaacf9fad (diff)
downloadlua-dc07719b0dbc4f2df0f42e34e18be1e0ac4fa2c3.tar.gz
lua-dc07719b0dbc4f2df0f42e34e18be1e0ac4fa2c3.tar.bz2
lua-dc07719b0dbc4f2df0f42e34e18be1e0ac4fa2c3.zip
Tag LUA_TUPVALTBC replaced by a flag
It is simpler to signal a to-be-closed upvalue with a boolean flag, instead of using a different tag.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lstate.h b/lstate.h
index 2a95dd16..03448b82 100644
--- a/lstate.h
+++ b/lstate.h
@@ -335,8 +335,7 @@ union GCUnion {
335#define gco2t(o) check_exp((o)->tt == LUA_TTABLE, &((cast_u(o))->h)) 335#define gco2t(o) check_exp((o)->tt == LUA_TTABLE, &((cast_u(o))->h))
336#define gco2p(o) check_exp((o)->tt == LUA_TPROTO, &((cast_u(o))->p)) 336#define gco2p(o) check_exp((o)->tt == LUA_TPROTO, &((cast_u(o))->p))
337#define gco2th(o) check_exp((o)->tt == LUA_TTHREAD, &((cast_u(o))->th)) 337#define gco2th(o) check_exp((o)->tt == LUA_TTHREAD, &((cast_u(o))->th))
338#define gco2upv(o) \ 338#define gco2upv(o) check_exp((o)->tt == LUA_TUPVAL, &((cast_u(o))->upv))
339 check_exp(novariant((o)->tt) == LUA_TUPVAL, &((cast_u(o))->upv))
340 339
341 340
342/* 341/*