Searched refs:metatable (Results 1 – 7 of 7) sorted by relevance
/external/lua/src/ |
D | ltm.c | 75 mt = hvalue(o)->metatable; in luaT_gettmbyobj() 78 mt = uvalue(o)->metatable; in luaT_gettmbyobj() 93 if ((ttistable(o) && (mt = hvalue(o)->metatable) != NULL) || in luaT_objtypename() 94 (ttisfulluserdata(o) && (mt = uvalue(o)->metatable) != NULL)) { in luaT_objtypename()
|
D | lobject.h | 441 struct Table *metatable; member 460 struct Table *metatable; member 720 struct Table *metatable; member
|
D | lvm.c | 301 tm = fasttm(L, hvalue(t)->metatable, TM_INDEX); /* table's metamethod */ in luaV_finishget() 338 tm = fasttm(L, h->metatable, TM_NEWINDEX); /* get metamethod */ in luaV_finishset() 590 tm = fasttm(L, uvalue(t1)->metatable, TM_EQ); in luaV_equalobj() 592 tm = fasttm(L, uvalue(t2)->metatable, TM_EQ); in luaV_equalobj() 598 tm = fasttm(L, hvalue(t1)->metatable, TM_EQ); in luaV_equalobj() 600 tm = fasttm(L, hvalue(t2)->metatable, TM_EQ); in luaV_equalobj() 686 tm = fasttm(L, h->metatable, TM_LEN); in luaV_objlen()
|
D | lgc.c | 311 markobjectN(g, u->metatable); /* mark its metatable */ in reallymarkobject() 539 const TValue *mode = gfasttm(g, h->metatable, TM_MODE); in traversetable() 540 markobjectN(g, h->metatable); in traversetable() 560 markobjectN(g, u->metatable); /* mark its metatable */ in traverseudata()
|
D | lstring.c | 280 u->metatable = NULL; in luaS_newudata()
|
D | lapi.c | 749 mt = hvalue(obj)->metatable; in lua_getmetatable() 752 mt = uvalue(obj)->metatable; in lua_getmetatable() 915 hvalue(obj)->metatable = mt; in lua_setmetatable() 923 uvalue(obj)->metatable = mt; in lua_setmetatable()
|
D | ltable.c | 585 t->metatable = NULL; in luaH_new()
|