new field 'nilvalue' in struct 'global_State' to avoid the use of
addresses of static variables
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user