MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaT_gettm

Function luaT_gettm

third-party/lua-5.2.4/src/ltm.c:52–60  ·  view source on GitHub ↗

** function to be used with macro "fasttm": optimized for absence of ** tag methods */

Source from the content-addressed store, hash-verified

50** tag methods
51*/
52const TValue *luaT_gettm (Table *events, TMS event, TString *ename) {
53 const TValue *tm = luaH_getstr(events, ename);
54 lua_assert(event <= TM_EQ);
55 if (ttisnil(tm)) { /* no tag method? */
56 events->flags |= cast_byte(1u<<event); /* cache this fact */
57 return NULL;
58 }
59 else return tm;
60}
61
62
63const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) {

Callers

nothing calls this directly

Calls 1

luaH_getstrFunction · 0.70

Tested by

no test coverage detected