New macro 'completestate'

This commit is contained in:
Roberto Ierusalimschy
2021-02-05 17:51:25 -03:00
parent dee6433a89
commit c63e5d212b
4 changed files with 11 additions and 7 deletions

View File

@@ -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)