diff options
| -rw-r--r-- | lobject.h | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 2.18 2005/10/24 17:37:33 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.19 2006/01/10 12:51:53 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 | */ |
| @@ -119,9 +119,6 @@ typedef struct lua_TValue { | |||
| 119 | #define setnvalue(obj,x) \ | 119 | #define setnvalue(obj,x) \ |
| 120 | { TValue *i_o=(obj); i_o->value.n=(x); i_o->tt=LUA_TNUMBER; } | 120 | { TValue *i_o=(obj); i_o->value.n=(x); i_o->tt=LUA_TNUMBER; } |
| 121 | 121 | ||
| 122 | #define chgnvalue(obj,x) \ | ||
| 123 | check_exp(ttype(obj)==LUA_TNUMBER, (obj)->value.n=(x)) | ||
| 124 | |||
| 125 | #define setpvalue(obj,x) \ | 122 | #define setpvalue(obj,x) \ |
| 126 | { TValue *i_o=(obj); i_o->value.p=(x); i_o->tt=LUA_TLIGHTUSERDATA; } | 123 | { TValue *i_o=(obj); i_o->value.p=(x); i_o->tt=LUA_TLIGHTUSERDATA; } |
| 127 | 124 | ||
