diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-04 14:04:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-04 14:04:06 -0300 |
commit | 7e1facaa4e06a3cf120d03d30ea295962095e462 (patch) | |
tree | 2d990447167a51392c13c3532683a00eb21e791b | |
parent | ad2531a0eefb6950d589c0d508b1f959f3f58d8b (diff) | |
download | lua-7e1facaa4e06a3cf120d03d30ea295962095e462.tar.gz lua-7e1facaa4e06a3cf120d03d30ea295962095e462.tar.bz2 lua-7e1facaa4e06a3cf120d03d30ea295962095e462.zip |
detail in assertion
-rw-r--r-- | lobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.49 2011/04/07 16:11:57 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.50 2011/05/03 16:01:57 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 | */ |
@@ -164,7 +164,7 @@ typedef struct lua_TValue { | |||
164 | #define setfvalue(obj,x) \ | 164 | #define setfvalue(obj,x) \ |
165 | { TValue *io_=(obj); io_->value_.f=(x); io_->tt_=LUA_TLCF; } | 165 | { TValue *io_=(obj); io_->value_.f=(x); io_->tt_=LUA_TLCF; } |
166 | 166 | ||
167 | #define changenvalue(o,x) check_exp((o)->tt_==LUA_TNUMBER, (o)->value_.n=(x)) | 167 | #define changenvalue(o,x) check_exp(ttisnumber(o), (o)->value_.n=(x)) |
168 | 168 | ||
169 | #define setpvalue(obj,x) \ | 169 | #define setpvalue(obj,x) \ |
170 | { TValue *io_=(obj); io_->value_.p=(x); io_->tt_=LUA_TLIGHTUSERDATA; } | 170 | { TValue *io_=(obj); io_->value_.p=(x); io_->tt_=LUA_TLIGHTUSERDATA; } |