aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 0ca9a321..ae6b07ae 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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