aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.h')
-rw-r--r--lobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index e91bb0f8..25e268be 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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
739typedef struct ArrayCell ArrayCell; 741typedef union ArrayCell ArrayCell;
740 742
741 743
742typedef struct Table { 744typedef struct Table {