aboutsummaryrefslogtreecommitdiff
path: root/ltm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-01-13 14:18:25 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-01-13 14:18:25 -0200
commit070d3743a7892ec6429000c8309b72bfb0600d19 (patch)
tree6922c5b887e36400d6d1a9971d2b831799d9a2be /ltm.h
parent0c7de97d47074b82dd08e67443e78dcee1241277 (diff)
downloadlua-070d3743a7892ec6429000c8309b72bfb0600d19.tar.gz
lua-070d3743a7892ec6429000c8309b72bfb0600d19.tar.bz2
lua-070d3743a7892ec6429000c8309b72bfb0600d19.zip
"no value" added to array luaT_typenames + occurrences of "userdata"
in that array unified in a single address
Diffstat (limited to 'ltm.h')
-rw-r--r--ltm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/ltm.h b/ltm.h
index 64e867b8..adb1b2e3 100644
--- a/ltm.h
+++ b/ltm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.h,v 2.7 2007/09/10 17:59:32 roberto Exp roberto $ 2** $Id: ltm.h,v 2.8 2009/11/19 19:06:52 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -43,7 +43,9 @@ typedef enum {
43 43
44#define fasttm(l,et,e) gfasttm(G(l), et, e) 44#define fasttm(l,et,e) gfasttm(G(l), et, e)
45 45
46LUAI_DDEC const char *const luaT_typenames[]; 46#define typename(x) luaT_typenames_[(x) + 1]
47
48LUAI_DDEC const char *const luaT_typenames_[];
47 49
48 50
49LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 51LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);