diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-03 15:26:13 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-11-03 15:26:13 -0300 |
| commit | 08a077d673b25cf1fbfe21794f240f4ff4999667 (patch) | |
| tree | 77ae945c9a2680af23d5fa11c156482b35c14e04 /lobject.h | |
| parent | 43c8e5bded052801f54a7439d18933b83570eb82 (diff) | |
| download | lua-08a077d673b25cf1fbfe21794f240f4ff4999667.tar.gz lua-08a077d673b25cf1fbfe21794f240f4ff4999667.tar.bz2 lua-08a077d673b25cf1fbfe21794f240f4ff4999667.zip | |
Full implementation of new representation for arrays
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 { |
