diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-09-11 15:21:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-09-11 15:21:44 -0300 |
commit | cf160abcf9f7d42d1acf841f7720cb8c2baa5e3c (patch) | |
tree | 77f81a3f816d31131e80083851563bdeedf9cf31 /lobject.h | |
parent | ae1d318822c2b531aa69ac0dfed1edc6470f6200 (diff) | |
download | lua-cf160abcf9f7d42d1acf841f7720cb8c2baa5e3c.tar.gz lua-cf160abcf9f7d42d1acf841f7720cb8c2baa5e3c.tar.bz2 lua-cf160abcf9f7d42d1acf841f7720cb8c2baa5e3c.zip |
no more macro 'changenvalue'
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.69 2012/05/08 13:53:33 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.70 2012/05/11 14:10:50 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 | */ |
@@ -52,8 +52,7 @@ | |||
52 | #define LUA_TCCL (LUA_TFUNCTION | (2 << 4)) /* C closure */ | 52 | #define LUA_TCCL (LUA_TFUNCTION | (2 << 4)) /* C closure */ |
53 | 53 | ||
54 | 54 | ||
55 | /* | 55 | /* Variant tags for strings */ |
56 | ** LUA_TSTRING variants */ | ||
57 | #define LUA_TSHRSTR (LUA_TSTRING | (0 << 4)) /* short strings */ | 56 | #define LUA_TSHRSTR (LUA_TSTRING | (0 << 4)) /* short strings */ |
58 | #define LUA_TLNGSTR (LUA_TSTRING | (1 << 4)) /* long strings */ | 57 | #define LUA_TLNGSTR (LUA_TSTRING | (1 << 4)) /* long strings */ |
59 | 58 | ||
@@ -188,8 +187,6 @@ typedef struct lua_TValue TValue; | |||
188 | #define setnvalue(obj,x) \ | 187 | #define setnvalue(obj,x) \ |
189 | { TValue *io=(obj); num_(io)=(x); settt_(io, LUA_TNUMBER); } | 188 | { TValue *io=(obj); num_(io)=(x); settt_(io, LUA_TNUMBER); } |
190 | 189 | ||
191 | #define changenvalue(o,x) check_exp(ttisnumber(o), num_(o)=(x)) | ||
192 | |||
193 | #define setnilvalue(obj) settt_(obj, LUA_TNIL) | 190 | #define setnilvalue(obj) settt_(obj, LUA_TNIL) |
194 | 191 | ||
195 | #define setfvalue(obj,x) \ | 192 | #define setfvalue(obj,x) \ |