Details (comments)
This commit is contained in:
6
lapi.c
6
lapi.c
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user