• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/lib/clang/liblldb/

Lines Matching defs:metatable

1010   swig_lua_method   *metatable; /* 0 for -eluac */
1234 if(!lua_isnil(L,-1)) /*There is an ordinary metatable */
1289 lua_remove(L,-2); /* stack tidy, remove metatable */
1301 lua_remove(L,-2); /* stack tidy, remove metatable */
1335 lua_pop(L,1); /* remote metatable */
1349 /* There must be namespace table (not metatable) at the top of the stack */
1400 lua_newtable(L); /* metatable for namespace */
1419 lua_setmetatable(L,-2); /* set metatable */
1498 /* Trick: temporarily replacing original metatable with metatable for base class and call getter */
1526 lua_setmetatable(L,subcall_first_arg); /* Set new metatable */
1533 /* Restore original metatable */
1573 lua_remove(L,-2); /* stack tidy, remove metatable */
1578 /* Remove the metatable */
1613 lua_remove(L,-2); /* stack tidy, remove metatable */
1627 lua_remove(L,-2); /* stack tidy, remove metatable */
1633 /* Remove the metatable */
1698 lua_remove(L,substack_start+4); /*remove metatable*/
1714 lua_remove(L,-2); /* stack tidy, remove metatable */
1719 lua_pop(L,1); /* remove metatable */
1780 (1) userdata (not the metatable) */
1899 /* Helper function to get the classes metatable from the register */
1947 /* Merges two tables with given name. original - index of target metatable, base - index of source metatable */
1965 /* There is one parameter - original, i.e. 'derived' class metatable */
2052 /* add methods to the metatable */
2060 This adds methods from metatable array to metatable. Can mess up garbage
2063 if(clss->metatable) {
2064 for(i=0;clss->metatable[i].name;i++) {
2065 SWIG_Lua_add_function(L,clss->metatable[i].name,clss->metatable[i].func);
2081 in metatable and not in object).
2096 * clss is class which metatable we will search for method
2118 lua_remove(L,-2); /* removing class metatable */
2121 lua_pop(L,2); /* remove class metatable and query result */
2172 * if method is defined in the class metatable itself
2185 /* Check whether method is already defined in metatable */
2213 lua_pop(L,1); /* remove base class metatable */
2275 lua_pop(L,1); /* pop class metatable */
2335 lua_newtable(L); /* create the metatable */
2337 /* If squashing is requested, then merges all bases metatable into this one.
2381 lua_rawset(L,-3); /* metatable into registry */
2391 lua_pop(L,1); /* tidy stack (remove class metatable) */
2404 * "MyClass" ----> [MyClass metatable] <===== "MyClass" -+> [static part]
2407 * ".static" --------------)----------------/ [static part metatable]
2417 assert(lua_istable(L,-1)); /* get class static metatable */
2420 SWIG_Lua_get_class_metatable(L,clss->fqname); /* get class metatable */
2425 lua_rawset(L,-3); /* assign static class table(!NOT metatable) as ".static" member of class metatable */
2426 lua_rawset(L,-3); /* assign class metatable as ".instance" member of class static METATABLE */
2455 assert(clss->metatable);
2456 lua_pushrotable(L, (void*)(clss->metatable)); /* create the metatable */
2467 /* helper to add metatable to new lua object */
2470 if (type->clientdata) /* there is clientdata: so add the metatable */
2497 SWIG_Lua_AddMetatable(L,type); /* add metatable */
2551 SWIG_Lua_AddMetatable(L,type); /* add metatable */