diff options
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.70 2012/05/11 14:10:50 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.71 2012/09/11 18:21:44 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 | */ |
@@ -124,12 +124,12 @@ typedef struct lua_TValue TValue; | |||
124 | #define ttype(o) (rttype(o) & 0x3F) | 124 | #define ttype(o) (rttype(o) & 0x3F) |
125 | 125 | ||
126 | /* type tag of a TValue with no variants (bits 0-3) */ | 126 | /* type tag of a TValue with no variants (bits 0-3) */ |
127 | #define ttypenv(o) (novariant(rttype(o))) | 127 | #define ttnov(o) (novariant(rttype(o))) |
128 | 128 | ||
129 | 129 | ||
130 | /* Macros to test type */ | 130 | /* Macros to test type */ |
131 | #define checktag(o,t) (rttype(o) == (t)) | 131 | #define checktag(o,t) (rttype(o) == (t)) |
132 | #define checktype(o,t) (ttypenv(o) == (t)) | 132 | #define checktype(o,t) (ttnov(o) == (t)) |
133 | #define ttisnumber(o) checktag((o), LUA_TNUMBER) | 133 | #define ttisnumber(o) checktag((o), LUA_TNUMBER) |
134 | #define ttisnil(o) checktag((o), LUA_TNIL) | 134 | #define ttisnil(o) checktag((o), LUA_TNIL) |
135 | #define ttisboolean(o) checktag((o), LUA_TBOOLEAN) | 135 | #define ttisboolean(o) checktag((o), LUA_TBOOLEAN) |