MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / add_class

Method add_class

ogsr_engine/Luabind/src/class_registry.cpp:240–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 }
239
240 void class_registry::add_class(LUABIND_TYPE_INFO info, class_rep* crep)
241 {
242 // class is already registered
243 if (m_classes.find(info) != m_classes.end())
244 Msg("!![%s] you are trying to register a class twice [%s]", __FUNCTION__, crep->name()); //To XRay Log
245
246 assert((m_classes.find(info) == m_classes.end()) && "you are trying to register a class twice");
247 m_classes[info] = crep;
248 }
249
250 class_rep* class_registry::find_class(LUABIND_TYPE_INFO info) const
251 {

Callers 1

register_Method · 0.80

Calls 4

MsgFunction · 0.85
findMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected