Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
lua-5.1.5/src/ltm.h
Go to the documentation of this file.
1/*
2** $Id: ltm.h,v 2.6.1.1 2007/12/27 13:02:25 roberto Exp $
3** Tag methods
4** See Copyright Notice in lua.h
5*/
6
7#ifndef ltm_h
8#define ltm_h
9
10
11#include "lobject.h"
12
13
14/*
15* WARNING: if you change the order of this enumeration,
16* grep "ORDER TM"
17*/
18typedef enum {
23 TM_EQ, /* last tag method with `fast' access */
36 TM_N /* number of elements in the enum */
38
39
40
41#define gfasttm(g,et,e) ((et) == NULL ? NULL : \
42 ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
43
44#define fasttm(l,et,e) gfasttm(G(l), et, e)
45
46LUAI_DATA const char *const luaT_typenames[];
47
48
49LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
51 TMS event);
53
54#endif
LUAI_DATA const char *const luaT_typenames[]
@ TM_GC
@ TM_NEWINDEX
@ TM_MODE
@ TM_MUL
@ TM_INDEX
@ TM_UNM
@ TM_EQ
@ TM_POW
@ TM_DIV
@ TM_LEN
@ TM_SUB
@ TM_ADD
@ TM_CALL
@ TM_LE
@ TM_CONCAT
@ TM_LT
@ TM_MOD
LUAI_FUNC const TValue * luaT_gettmbyobj(lua_State *L, const TValue *o, TMS event)
LUAI_FUNC const TValue * luaT_gettm(Table *events, TMS event, TString *ename)
LUAI_FUNC void luaT_init(lua_State *L)
#define LUAI_DATA
#define LUAI_FUNC