aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-15 16:31:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-06-15 16:31:22 -0300
commitb95e46621873cfb460e1d11dcd153914d5d69f86 (patch)
treeaeb1db66a8254b5f997bcfd0a8ac606eea2f621c /lobject.h
parentd406d3d05ffe8bc01d6416437963ce092cfc9772 (diff)
downloadlua-b95e46621873cfb460e1d11dcd153914d5d69f86.tar.gz
lua-b95e46621873cfb460e1d11dcd153914d5d69f86.tar.bz2
lua-b95e46621873cfb460e1d11dcd153914d5d69f86.zip
new field 'nilvalue' in struct 'global_State' to avoid the use of
addresses of static variables
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lobject.h b/lobject.h
index 7c2b3f84..dbb9982d 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.144 2018/06/01 17:40:38 roberto Exp roberto $ 2** $Id: lobject.h,v 2.145 2018/06/15 14:14:20 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*/
@@ -144,9 +144,6 @@ typedef StackValue *StkId; /* index to stack elements */
144#define ttisstrictnil(o) checktag((o), LUA_TNIL) 144#define ttisstrictnil(o) checktag((o), LUA_TNIL)
145 145
146 146
147/* macro defining a nil value */
148#define NILCONSTANT {NULL}, LUA_TNIL
149
150#define setnilvalue(obj) settt_(obj, LUA_TNIL) 147#define setnilvalue(obj) settt_(obj, LUA_TNIL)
151 148
152 149