aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-02-05 17:51:25 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-02-05 17:51:25 -0300
commitc63e5d212bc5dec1b1c749e3f07b42cd83081826 (patch)
tree35c2dc1d828e0ec9c89d60ac2702b847e002a68f /lstate.h
parentdee6433a89b088a1f8da9531a92a2a2693e5dac7 (diff)
downloadlua-c63e5d212bc5dec1b1c749e3f07b42cd83081826.tar.gz
lua-c63e5d212bc5dec1b1c749e3f07b42cd83081826.tar.bz2
lua-c63e5d212bc5dec1b1c749e3f07b42cd83081826.zip
New macro 'completestate'
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lstate.h b/lstate.h
index f3d791ab..5ef55355 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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)