]>
git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/src/third_party/lua-5.3.3/src/ltm.h
2 ** $Id: ltm.h,v 2.22 2016/02/26 19:20:15 roberto Exp $
4 ** See Copyright Notice in lua.h
15 * WARNING: if you change the order of this enumeration,
16 * grep "ORDER TM" and "ORDER OP"
24 TM_EQ
, /* last tag method with fast access */
43 TM_N
/* number of elements in the enum */
48 #define gfasttm(g,et,e) ((et) == NULL ? NULL : \
49 ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
51 #define fasttm(l,et,e) gfasttm(G(l), et, e)
53 #define ttypename(x) luaT_typenames_[(x) + 1]
55 LUAI_DDEC
const char *const luaT_typenames_
[LUA_TOTALTAGS
];
58 LUAI_FUNC
const char *luaT_objtypename (lua_State
*L
, const TValue
*o
);
60 LUAI_FUNC
const TValue
*luaT_gettm (Table
*events
, TMS event
, TString
*ename
);
61 LUAI_FUNC
const TValue
*luaT_gettmbyobj (lua_State
*L
, const TValue
*o
,
63 LUAI_FUNC
void luaT_init (lua_State
*L
);
65 LUAI_FUNC
void luaT_callTM (lua_State
*L
, const TValue
*f
, const TValue
*p1
,
66 const TValue
*p2
, TValue
*p3
, int hasres
);
67 LUAI_FUNC
int luaT_callbinTM (lua_State
*L
, const TValue
*p1
, const TValue
*p2
,
68 StkId res
, TMS event
);
69 LUAI_FUNC
void luaT_trybinTM (lua_State
*L
, const TValue
*p1
, const TValue
*p2
,
70 StkId res
, TMS event
);
71 LUAI_FUNC
int luaT_callorderTM (lua_State
*L
, const TValue
*p1
,
72 const TValue
*p2
, TMS event
);