diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-03 16:33:10 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-11-03 16:33:10 -0200 |
commit | ebb2afa54bb038f6d7ddb81b908ffeb4a9c3dea3 (patch) | |
tree | 13373ed7534e80ad928cbd48a25baa928765a498 /lobject.h | |
parent | 748551238451acf36a245fb2f883293149e2f0ca (diff) | |
download | lua-ebb2afa54bb038f6d7ddb81b908ffeb4a9c3dea3.tar.gz lua-ebb2afa54bb038f6d7ddb81b908ffeb4a9c3dea3.tar.bz2 lua-ebb2afa54bb038f6d7ddb81b908ffeb4a9c3dea3.zip |
allow 'set' macros to be used when 'L' is not available (as it was
needed only for assertions)
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.114 2015/09/17 15:51:05 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.115 2015/10/28 17:28:40 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 | */ |
@@ -189,7 +189,7 @@ typedef struct lua_TValue { | |||
189 | 189 | ||
190 | #define checkliveness(L,obj) \ | 190 | #define checkliveness(L,obj) \ |
191 | lua_longassert(!iscollectable(obj) || \ | 191 | lua_longassert(!iscollectable(obj) || \ |
192 | (righttt(obj) && !isdead(G(L),gcvalue(obj)))) | 192 | (righttt(obj) && (L == NULL || !isdead(G(L),gcvalue(obj))))) |
193 | 193 | ||
194 | 194 | ||
195 | /* Macros to set values */ | 195 | /* Macros to set values */ |