Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
lua-5.3.6/src/ltm.h
Go to the documentation of this file.
1/*
2** $Id: ltm.h,v 2.22.1.1 2017/04/19 17:20:42 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" and "ORDER OP"
17*/
45
46
47
48#define gfasttm(g,et,e) ((et) == NULL ? NULL : \
49 ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
50
51#define fasttm(l,et,e) gfasttm(G(l), et, e)
52
53#define ttypename(x) luaT_typenames_[(x) + 1]
54
56
57
58LUAI_FUNC const char *luaT_objtypename (lua_State *L, const TValue *o);
59
60LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
62 TMS event);
64
65LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1,
66 const TValue *p2, TValue *p3, int hasres);
67LUAI_FUNC int luaT_callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
68 StkId res, TMS event);
69LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
70 StkId res, TMS event);
72 const TValue *p2, TMS event);
73
74
75
76#endif
#define LUAI_FUNC
#define LUA_TOTALTAGS
#define LUAI_DDEC
LUAI_FUNC void luaT_callTM(lua_State *L, const TValue *f, const TValue *p1, const TValue *p2, TValue *p3, int hasres)
LUAI_DDEC const char *const luaT_typenames_[LUA_TOTALTAGS]
LUAI_FUNC int luaT_callorderTM(lua_State *L, const TValue *p1, const TValue *p2, TMS event)
LUAI_FUNC void luaT_trybinTM(lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event)
@ TM_GC
@ TM_IDIV
@ TM_NEWINDEX
@ TM_BAND
@ TM_MODE
@ TM_MUL
@ TM_BNOT
@ TM_BXOR
@ TM_SHR
@ TM_BOR
@ TM_INDEX
@ TM_UNM
@ TM_EQ
@ TM_POW
@ TM_DIV
@ TM_LEN
@ TM_SUB
@ TM_ADD
@ TM_CALL
@ TM_SHL
@ TM_LE
@ TM_CONCAT
@ TM_LT
@ TM_MOD
LUAI_FUNC int luaT_callbinTM(lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event)
LUAI_FUNC const char * luaT_objtypename(lua_State *L, const TValue *o)
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)