]>
git.proxmox.com Git - mirror_zfs.git/blob - module/lua/ltm.h
3 ** $Id: ltm.h,v 2.11.1.1 2013/04/12 18:48:47 roberto Exp $
5 ** See Copyright Notice in lua.h
16 * WARNING: if you change the order of this enumeration,
25 TM_EQ
, /* last tag method with `fast' access */
37 TM_N
/* number of elements in the enum */
42 #define gfasttm(g,et,e) ((et) == NULL ? NULL : \
43 ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
45 #define fasttm(l,et,e) gfasttm(G(l), et, e)
47 #define ttypename(x) luaT_typenames_[(x) + 1]
48 #define objtypename(x) ttypename(ttypenv(x))
50 LUAI_DDEC
const char *const luaT_typenames_
[LUA_TOTALTAGS
];
53 LUAI_FUNC
const TValue
*luaT_gettm (Table
*events
, TMS event
, TString
*ename
);
54 LUAI_FUNC
const TValue
*luaT_gettmbyobj (lua_State
*L
, const TValue
*o
,
56 LUAI_FUNC
void luaT_init (lua_State
*L
);