Home
last modified time | relevance | path

Searched refs:metatable (Results 1 – 7 of 7) sorted by relevance

/external/lua/src/
Dltm.c75 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()
Dlobject.h441 struct Table *metatable; member
460 struct Table *metatable; member
720 struct Table *metatable; member
Dlvm.c301 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()
Dlgc.c311 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()
Dlstring.c280 u->metatable = NULL; in luaS_newudata()
Dlapi.c749 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()
Dltable.c585 t->metatable = NULL; in luaH_new()