aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lobject.h b/lobject.h
index 671915f0..ed0f0294 100644
--- a/lobject.h
+++ b/lobject.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.h,v 2.51 2011/05/04 17:04:06 roberto Exp roberto $ 2** $Id: lobject.h,v 2.52 2011/05/05 15:53:23 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*/
@@ -152,10 +152,9 @@ typedef struct lua_TValue {
152/* Macros for internal tests */ 152/* Macros for internal tests */
153#define righttt(obj) (ttype(obj) == gcvalue(obj)->gch.tt) 153#define righttt(obj) (ttype(obj) == gcvalue(obj)->gch.tt)
154 154
155#define checkconsistency(obj) lua_assert(!iscollectable(obj) || righttt(obj))
156
157#define checkliveness(g,obj) \ 155#define checkliveness(g,obj) \
158 lua_assert(!iscollectable(obj) || (righttt(obj) && !isdead(g,gcvalue(obj)))) 156 lua_longassert(!iscollectable(obj) || \
157 (righttt(obj) && !isdead(g,gcvalue(obj))))
159 158
160 159
161/* Macros to set values */ 160/* Macros to set values */