diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-08 15:27:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-08 15:27:13 -0300 |
commit | 8ca9534d048782af13141874e0d2fec0d0f806af (patch) | |
tree | d58ab47be12ff9d5910ffaf6222cf94bd0dff0f6 /lobject.h | |
parent | 8bcf6228765e56be19feb90c8805cc2fb2223188 (diff) | |
download | lua-8ca9534d048782af13141874e0d2fec0d0f806af.tar.gz lua-8ca9534d048782af13141874e0d2fec0d0f806af.tar.bz2 lua-8ca9534d048782af13141874e0d2fec0d0f806af.zip |
access to `values' in TObject always through macros
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 1.65 2000/05/24 13:54:49 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.66 2000/05/30 19:00:31 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 | */ |
@@ -73,10 +73,10 @@ typedef union { | |||
73 | /* Macros to access values */ | 73 | /* Macros to access values */ |
74 | #define ttype(o) ((o)->ttype) | 74 | #define ttype(o) ((o)->ttype) |
75 | #define nvalue(o) ((o)->value.n) | 75 | #define nvalue(o) ((o)->value.n) |
76 | #define svalue(o) ((o)->value.ts->str) | ||
77 | #define tsvalue(o) ((o)->value.ts) | 76 | #define tsvalue(o) ((o)->value.ts) |
78 | #define clvalue(o) ((o)->value.cl) | 77 | #define clvalue(o) ((o)->value.cl) |
79 | #define avalue(o) ((o)->value.a) | 78 | #define hvalue(o) ((o)->value.a) |
79 | #define svalue(o) (tsvalue(o)->str) | ||
80 | 80 | ||
81 | 81 | ||
82 | typedef struct lua_TObject { | 82 | typedef struct lua_TObject { |