Detail (in asserts)

Macro 'checkconsistency' replaced by the similar 'checkliveness".
This commit is contained in:
Roberto Ierusalimschy
2020-08-03 16:05:10 -03:00
parent 9cf3299faf
commit 68109afcdb
2 changed files with 3 additions and 5 deletions

View File

@@ -96,7 +96,8 @@ typedef struct TValue {
/*
** Any value being manipulated by the program either is non
** collectable, or the collectable object has the right tag
** and it is not dead.
** and it is not dead. The option 'L == NULL' allows other
** macros using this one to be used where L is not available.
*/
#define checkliveness(L,obj) \
((void)L, lua_longassert(!iscollectable(obj) || \