The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ltm.h
Go to the documentation of this file.
1 /*
2 ** Tag methods
3 ** See Copyright Notice in lua.h
4 */
5 
6 #ifndef ltm_h
7 #define ltm_h
8 
9 
10 #include "lobject.h"
11 
12 
13 /*
14 * WARNING: if you change the order of this enumeration,
15 * grep "ORDER TM"
16 */
17 typedef enum {
23  TM_EQ, /* last tag method with `fast' access */
35  TM_N /* number of elements in the enum */
36 } TMS;
37 
38 
39 
40 #define gfasttm(g,et,e) ((et) == NULL ? NULL : \
41  ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
42 
43 #define fasttm(l,et,e) gfasttm(G(l), et, e)
44 
45 #define ttypename(x) luaT_typenames_[(x) + 1]
46 #define objtypename(x) ttypename(ttypenv(x))
47 
49 
50 
52 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
53  TMS event);
54 LUAI_FUNC void luaT_init (lua_State *L);
55 
56 #endif
Definition: ltm.h:33
Definition: ltm.h:28
Definition: ltm.h:18
Definition: lobject.h:559
Definition: ltm.h:30
Definition: ltm.h:20
LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS]
Definition: ltm.h:48
#define LUAI_FUNC
Definition: luaconf.h:187
Definition: ltm.h:34
LUAI_FUNC const TValue * luaT_gettm(Table *events, TMS event, TString *ename)
Definition: ltm.cpp:51
Definition: ltm.h:29
#define LUAI_DDEC
Definition: luaconf.h:188
LUAI_FUNC const TValue * luaT_gettmbyobj(lua_State *L, const TValue *o, TMS event)
Definition: ltm.cpp:62
Definition: ltm.h:24
LUAI_FUNC void luaT_init(lua_State *L)
Definition: ltm.cpp:31
Definition: ltm.h:35
Definition: ltm.h:31
#define LUA_TOTALTAGS
Definition: lobject.h:28
Definition: ltm.h:21
Definition: ltm.h:22
Definition: ltm.h:25
Definition: ltm.h:26
Definition: ltm.h:23
Handling of system events.
Definition: manager.hpp:42
TMS
Definition: ltm.h:17
cl_event event
Definition: glew.h:3070
Definition: ltm.h:32
Definition: ltm.h:27