aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lapi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index 4411cb29..cf73324b 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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 */