diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-19 11:12:31 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-19 11:12:31 -0300 |
| commit | dc07719b0dbc4f2df0f42e34e18be1e0ac4fa2c3 (patch) | |
| tree | 9f9a73b2bccb0b7bf07ac32476e1127f46d222d9 /lstate.h | |
| parent | 9cdf6b7082c49e6bf7daf8c7c4c649bcaacf9fad (diff) | |
| download | lua-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.h | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -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 | /* |
