From c63e5d212bc5dec1b1c749e3f07b42cd83081826 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 5 Feb 2021 17:51:25 -0300 Subject: New macro 'completestate' --- lstate.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lstate.h') 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 { #define G(L) (L->l_G) +/* +** 'g->nilvalue' being a nil value flags that the state was completely +** build. +*/ +#define completestate(g) ttisnil(&g->nilvalue) + /* ** Union of all collectable objects (only for conversions) -- cgit v1.2.3-55-g6feb