From 03c6a05ec836c3a90a6b8d730120afdad39c092b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 4 Apr 2018 11:23:41 -0300 Subject: no more nil-in-table --- lobject.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index b18dce47..dc5f32a1 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.140 2018/02/26 13:35:03 roberto Exp roberto $ +** $Id: lobject.h,v 2.141 2018/02/26 14:16:05 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -160,15 +160,9 @@ typedef StackValue *StkId; /* index to stack elements */ #define isreallyempty(v) checktag((v), LUA_TEMPTY) -#if defined(LUA_NILINTABLE) - -#define isempty(v) isreallyempty(v) - -#else /* By default, entries with any kind of nil are considered empty */ - +/* By default, entries with any kind of nil are considered empty */ #define isempty(v) ttisnilorempty(v) -#endif /* macro defining an empty value */ #define EMPTYCONSTANT {NULL}, LUA_TEMPTY -- cgit v1.2.3-55-g6feb