summaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-03 16:33:10 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-03 16:33:10 -0200
commitebb2afa54bb038f6d7ddb81b908ffeb4a9c3dea3 (patch)
tree13373ed7534e80ad928cbd48a25baa928765a498 /lobject.h
parent748551238451acf36a245fb2f883293149e2f0ca (diff)
downloadlua-github-ebb2afa54bb038f6d7ddb81b908ffeb4a9c3dea3.tar.gz
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lobject.h b/lobject.h
index 7a9c0707..79b467e8 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
/*
-** $Id: lobject.h,v 2.114 2015/09/17 15:51:05 roberto Exp roberto $
+** $Id: lobject.h,v 2.115 2015/10/28 17:28:40 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -189,7 +189,7 @@ typedef struct lua_TValue {
#define checkliveness(L,obj) \
lua_longassert(!iscollectable(obj) || \
- (righttt(obj) && !isdead(G(L),gcvalue(obj))))
+ (righttt(obj) && (L == NULL || !isdead(G(L),gcvalue(obj)))))
/* Macros to set values */