diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-05 17:51:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-05 17:51:25 -0300 |
commit | c63e5d212bc5dec1b1c749e3f07b42cd83081826 (patch) | |
tree | 35c2dc1d828e0ec9c89d60ac2702b847e002a68f /lstate.h | |
parent | dee6433a89b088a1f8da9531a92a2a2693e5dac7 (diff) | |
download | lua-c63e5d212bc5dec1b1c749e3f07b42cd83081826.tar.gz lua-c63e5d212bc5dec1b1c749e3f07b42cd83081826.tar.bz2 lua-c63e5d212bc5dec1b1c749e3f07b42cd83081826.zip |
New macro 'completestate'
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -324,6 +324,12 @@ struct lua_State { | |||
324 | 324 | ||
325 | #define G(L) (L->l_G) | 325 | #define G(L) (L->l_G) |
326 | 326 | ||
327 | /* | ||
328 | ** 'g->nilvalue' being a nil value flags that the state was completely | ||
329 | ** build. | ||
330 | */ | ||
331 | #define completestate(g) ttisnil(&g->nilvalue) | ||
332 | |||
327 | 333 | ||
328 | /* | 334 | /* |
329 | ** Union of all collectable objects (only for conversions) | 335 | ** Union of all collectable objects (only for conversions) |