aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-04-04 11:23:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-04-04 11:23:41 -0300
commit03c6a05ec836c3a90a6b8d730120afdad39c092b (patch)
tree31f0bdf82969b1e082e92d7b5dd5d9e1496d64af /lobject.h
parent3d0b5edfe4df7ec54d6885b6b6ce917faddf6661 (diff)
downloadlua-03c6a05ec836c3a90a6b8d730120afdad39c092b.tar.gz
lua-03c6a05ec836c3a90a6b8d730120afdad39c092b.tar.bz2
lua-03c6a05ec836c3a90a6b8d730120afdad39c092b.zip
no more nil-in-table
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/lobject.h b/lobject.h
index b18dce47..dc5f32a1 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.140 2018/02/26 13:35:03 roberto Exp roberto $ 2** $Id: lobject.h,v 2.141 2018/02/26 14:16:05 roberto Exp roberto $
3** Type definitions for Lua objects 3** Type definitions for Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -160,15 +160,9 @@ typedef StackValue *StkId; /* index to stack elements */
160#define isreallyempty(v) checktag((v), LUA_TEMPTY) 160#define isreallyempty(v) checktag((v), LUA_TEMPTY)
161 161
162 162
163#if defined(LUA_NILINTABLE) 163/* By default, entries with any kind of nil are considered empty */
164
165#define isempty(v) isreallyempty(v)
166
167#else /* By default, entries with any kind of nil are considered empty */
168
169#define isempty(v) ttisnilorempty(v) 164#define isempty(v) ttisnilorempty(v)
170 165
171#endif
172 166
173/* macro defining an empty value */ 167/* macro defining an empty value */
174#define EMPTYCONSTANT {NULL}, LUA_TEMPTY 168#define EMPTYCONSTANT {NULL}, LUA_TEMPTY