diff options
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -192,6 +192,8 @@ typedef union { | |||
192 | /* macro to test for (any kind of) nil */ | 192 | /* macro to test for (any kind of) nil */ |
193 | #define ttisnil(v) checktype((v), LUA_TNIL) | 193 | #define ttisnil(v) checktype((v), LUA_TNIL) |
194 | 194 | ||
195 | #define tagisempty(tag) (novariant(tag) == LUA_TNIL) | ||
196 | |||
195 | 197 | ||
196 | /* macro to test for a standard nil */ | 198 | /* macro to test for a standard nil */ |
197 | #define ttisstrictnil(o) checktag((o), LUA_VNIL) | 199 | #define ttisstrictnil(o) checktag((o), LUA_VNIL) |
@@ -736,7 +738,7 @@ typedef union Node { | |||
736 | #define setnorealasize(t) ((t)->flags |= BITRAS) | 738 | #define setnorealasize(t) ((t)->flags |= BITRAS) |
737 | 739 | ||
738 | 740 | ||
739 | typedef struct ArrayCell ArrayCell; | 741 | typedef union ArrayCell ArrayCell; |
740 | 742 | ||
741 | 743 | ||
742 | typedef struct Table { | 744 | typedef struct Table { |