Details (comments)

This commit is contained in:
Roberto Ierusalimschy
2018-09-11 08:39:12 -03:00
parent 5382a22e0e
commit 9cbf17b0f1
3 changed files with 11 additions and 4 deletions

6
lapi.c
View File

@@ -38,7 +38,11 @@ const char lua_ident[] =
/* test for a valid index */
/*
** Test for a valid index.
** '!ttisnil(o)' implies 'o != &G(L)->nilvalue', so it is not needed.
** However, it covers the most common cases in a faster way.
*/
#define isvalid(L, o) (!ttisnil(o) || o != &G(L)->nilvalue)