diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-01-18 09:37:34 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-01-18 09:37:34 -0200 |
| commit | 440113bbe8c44b160e11ee47f9b3b322ed1441fb (patch) | |
| tree | a11664aa73f7332f5b0a9560ddc5eb051dbaeb15 | |
| parent | 73ebc5d8f677a46de2e95c6f63fbb1f9e5b9cd46 (diff) | |
| download | lua-440113bbe8c44b160e11ee47f9b3b322ed1441fb.tar.gz lua-440113bbe8c44b160e11ee47f9b3b322ed1441fb.tar.bz2 lua-440113bbe8c44b160e11ee47f9b3b322ed1441fb.zip | |
unused macro removed
| -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 | ||
