From 8ca9534d048782af13141874e0d2fec0d0f806af Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 8 Jun 2000 15:27:13 -0300 Subject: access to `values' in TObject always through macros --- lobject.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 0a6d1093..0395afa3 100644 --- a/lobject.h +++ b/lobject.h @@ -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 { -- cgit v1.2.3-55-g6feb