diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -38,7 +38,11 @@ const char lua_ident[] = | |||
38 | 38 | ||
39 | 39 | ||
40 | 40 | ||
41 | /* test for a valid index */ | 41 | /* |
42 | ** Test for a valid index. | ||
43 | ** '!ttisnil(o)' implies 'o != &G(L)->nilvalue', so it is not needed. | ||
44 | ** However, it covers the most common cases in a faster way. | ||
45 | */ | ||
42 | #define isvalid(L, o) (!ttisnil(o) || o != &G(L)->nilvalue) | 46 | #define isvalid(L, o) (!ttisnil(o) || o != &G(L)->nilvalue) |
43 | 47 | ||
44 | 48 | ||