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.81 2013/08/27 18:53:35 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.82 2013/09/05 19:31:49 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 | */ |
@@ -146,7 +146,7 @@ typedef struct lua_TValue TValue; | |||
146 | #define ttisCclosure(o) checktag((o), ctb(LUA_TCCL)) | 146 | #define ttisCclosure(o) checktag((o), ctb(LUA_TCCL)) |
147 | #define ttisLclosure(o) checktag((o), ctb(LUA_TLCL)) | 147 | #define ttisLclosure(o) checktag((o), ctb(LUA_TLCL)) |
148 | #define ttislcf(o) checktag((o), LUA_TLCF) | 148 | #define ttislcf(o) checktag((o), LUA_TLCF) |
149 | #define ttisuserdata(o) checktag((o), ctb(LUA_TUSERDATA)) | 149 | #define ttisfulluserdata(o) checktag((o), ctb(LUA_TUSERDATA)) |
150 | #define ttisthread(o) checktag((o), ctb(LUA_TTHREAD)) | 150 | #define ttisthread(o) checktag((o), ctb(LUA_TTHREAD)) |
151 | #define ttisdeadkey(o) checktag((o), LUA_TDEADKEY) | 151 | #define ttisdeadkey(o) checktag((o), LUA_TDEADKEY) |
152 | 152 | ||
@@ -158,7 +158,7 @@ typedef struct lua_TValue TValue; | |||
158 | #define pvalue(o) check_exp(ttislightuserdata(o), val_(o).p) | 158 | #define pvalue(o) check_exp(ttislightuserdata(o), val_(o).p) |
159 | #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts) | 159 | #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts) |
160 | #define tsvalue(o) (&rawtsvalue(o)->tsv) | 160 | #define tsvalue(o) (&rawtsvalue(o)->tsv) |
161 | #define rawuvalue(o) check_exp(ttisuserdata(o), &val_(o).gc->u) | 161 | #define rawuvalue(o) check_exp(ttisfulluserdata(o), &val_(o).gc->u) |
162 | #define uvalue(o) (&rawuvalue(o)->uv) | 162 | #define uvalue(o) (&rawuvalue(o)->uv) |
163 | #define clvalue(o) check_exp(ttisclosure(o), &val_(o).gc->cl) | 163 | #define clvalue(o) check_exp(ttisclosure(o), &val_(o).gc->cl) |
164 | #define clLvalue(o) check_exp(ttisLclosure(o), &val_(o).gc->cl.l) | 164 | #define clLvalue(o) check_exp(ttisLclosure(o), &val_(o).gc->cl.l) |