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-github-8ca9534d048782af13141874e0d2fec0d0f806af.tar.gz | |
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 @@ /* -** $Id: lobject.h,v 1.65 2000/05/24 13:54:49 roberto Exp roberto $ +** $Id: lobject.h,v 1.66 2000/05/30 19:00:31 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -73,10 +73,10 @@ typedef union { /* Macros to access values */ #define ttype(o) ((o)->ttype) #define nvalue(o) ((o)->value.n) -#define svalue(o) ((o)->value.ts->str) #define tsvalue(o) ((o)->value.ts) #define clvalue(o) ((o)->value.cl) -#define avalue(o) ((o)->value.a) +#define hvalue(o) ((o)->value.a) +#define svalue(o) (tsvalue(o)->str) typedef struct lua_TObject { |
