diff options
-rw-r--r-- | lapi.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -40,10 +40,8 @@ const char lua_ident[] = | |||
40 | 40 | ||
41 | /* | 41 | /* |
42 | ** Test for a valid index (one that is not the 'nilvalue'). | 42 | ** Test for a valid index (one that is not the 'nilvalue'). |
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 | */ | 43 | */ |
46 | #define isvalid(L, o) (!ttisnil(o) || o != &G(L)->nilvalue) | 44 | #define isvalid(L, o) ((o) != &G(L)->nilvalue) |
47 | 45 | ||
48 | 46 | ||
49 | /* test for pseudo index */ | 47 | /* test for pseudo index */ |