summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/ltm.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/ltm.h')
-rw-r--r--apps/plugins/lua/ltm.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugins/lua/ltm.h b/apps/plugins/lua/ltm.h
index 1b89683ef3..7f89c841f9 100644
--- a/apps/plugins/lua/ltm.h
+++ b/apps/plugins/lua/ltm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id$ 2** $Id: ltm.h,v 2.11.1.1 2013/04/12 18:48:47 roberto Exp $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -20,6 +20,7 @@ typedef enum {
20 TM_NEWINDEX, 20 TM_NEWINDEX,
21 TM_GC, 21 TM_GC,
22 TM_MODE, 22 TM_MODE,
23 TM_LEN,
23 TM_EQ, /* last tag method with `fast' access */ 24 TM_EQ, /* last tag method with `fast' access */
24 TM_ADD, 25 TM_ADD,
25 TM_SUB, 26 TM_SUB,
@@ -28,7 +29,6 @@ typedef enum {
28 TM_MOD, 29 TM_MOD,
29 TM_POW, 30 TM_POW,
30 TM_UNM, 31 TM_UNM,
31 TM_LEN,
32 TM_LT, 32 TM_LT,
33 TM_LE, 33 TM_LE,
34 TM_CONCAT, 34 TM_CONCAT,
@@ -43,7 +43,10 @@ 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_DATA const char *const luaT_typenames[]; 46#define ttypename(x) luaT_typenames_[(x) + 1]
47#define objtypename(x) ttypename(ttypenv(x))
48
49LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS];
47 50
48 51
49LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 52LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);