MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / is_class_rep

Method is_class_rep

Source/Misc/luabind/src/class_rep.cpp:321–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321bool luabind::detail::is_class_rep(lua_State* L, int index)
322{
323 if (!lua_getmetatable(L, index))
324 return false;
325
326 lua_rawgetp(L, -1, &classrep_tag);
327 detail::stack_pop pop(L, 2);
328 return !lua_isnil(L, -1);
329}
330
331void luabind::detail::finalize(lua_State* L, class_rep* crep)
332{

Callers

nothing calls this directly

Calls 2

lua_getmetatableFunction · 0.85
lua_rawgetpFunction · 0.85

Tested by

no test coverage detected