new field 'nilvalue' in struct 'global_State' to avoid the use of

addresses of static variables
This commit is contained in:
Roberto Ierusalimschy
2018-06-15 16:31:22 -03:00
parent d406d3d05f
commit b95e466218
5 changed files with 17 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lobject.h,v 2.144 2018/06/01 17:40:38 roberto Exp roberto $
** $Id: lobject.h,v 2.145 2018/06/15 14:14:20 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -144,9 +144,6 @@ typedef StackValue *StkId; /* index to stack elements */
#define ttisstrictnil(o) checktag((o), LUA_TNIL)
/* macro defining a nil value */
#define NILCONSTANT {NULL}, LUA_TNIL
#define setnilvalue(obj) settt_(obj, LUA_TNIL)