From 070d3743a7892ec6429000c8309b72bfb0600d19 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Jan 2010 14:18:25 -0200 Subject: "no value" added to array luaT_typenames + occurrences of "userdata" in that array unified in a single address --- ltm.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ltm.h') diff --git a/ltm.h b/ltm.h index 64e867b8..adb1b2e3 100644 --- a/ltm.h +++ b/ltm.h @@ -1,5 +1,5 @@ /* -** $Id: ltm.h,v 2.7 2007/09/10 17:59:32 roberto Exp roberto $ +** $Id: ltm.h,v 2.8 2009/11/19 19:06:52 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -43,7 +43,9 @@ typedef enum { #define fasttm(l,et,e) gfasttm(G(l), et, e) -LUAI_DDEC const char *const luaT_typenames[]; +#define typename(x) luaT_typenames_[(x) + 1] + +LUAI_DDEC const char *const luaT_typenames_[]; LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); -- cgit v1.2.3-55-g6feb