diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-12 16:07:09 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-12 16:07:09 -0300 |
| commit | 8f8665fffad817d764ce03a53385f2ee08cb0a91 (patch) | |
| tree | ec8ac7607d5553acdd10f096369f5b28ebc0ace8 /lobject.h | |
| parent | 49c1607157560f0775f3c697cca47b06978cc3e5 (diff) | |
| download | lua-8f8665fffad817d764ce03a53385f2ee08cb0a91.tar.gz lua-8f8665fffad817d764ce03a53385f2ee08cb0a91.tar.bz2 lua-8f8665fffad817d764ce03a53385f2ee08cb0a91.zip | |
'ttypenv' -> 'ttnov'
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) |
