no more nil-in-table

This commit is contained in:
Roberto Ierusalimschy
2018-04-04 11:23:41 -03:00
parent 3d0b5edfe4
commit 03c6a05ec8
16 changed files with 23 additions and 172 deletions

View File

@@ -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