From ee5edb6b680589805c8fc348f6a7566c2bd8735d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Sep 2015 12:51:05 -0300 Subject: macros 'getaddrstr' and 'getstr' unified (they do the same thing) --- lobject.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index aa5bf94e..e095f43f 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.112 2015/09/08 15:49:25 roberto Exp roberto $ +** $Id: lobject.h,v 2.113 2015/09/08 16:54:52 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -325,9 +325,9 @@ typedef union UTString { ** Get the actual string (array of bytes) from a 'TString'. ** (Access to 'extra' ensures that value is really a 'TString'.) */ -#define getaddrstr(ts) (cast(char *, (ts)) + sizeof(UTString)) #define getstr(ts) \ - check_exp(sizeof((ts)->extra), cast(const char*, getaddrstr(ts))) + check_exp(sizeof((ts)->extra), cast(char *, (ts)) + sizeof(UTString)) + /* get the actual string (array of bytes) from a Lua value */ #define svalue(o) getstr(tsvalue(o)) -- cgit v1.2.3-55-g6feb