MCPcopy Create free account
hub / github.com/ZDoom/gzdoom / InsertIntoHash

Method InsertIntoHash

src/common/objects/dobjtype.cpp:365–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363//==========================================================================
364
365void PClass::InsertIntoHash (bool native)
366{
367 auto k = ClassMap.CheckKey(TypeName);
368 if (k != nullptr)
369 { // This type has already been inserted
370 I_Error("Tried to register class '%s' more than once.\n", TypeName.GetChars());
371 }
372 else
373 {
374 ClassMap[TypeName] = this;
375 }
376}
377
378//==========================================================================
379//

Callers 3

RegisterClassMethod · 0.80
CreateDerivedClassMethod · 0.80
FindClassTentativeMethod · 0.80

Calls 3

I_ErrorFunction · 0.85
CheckKeyMethod · 0.45
GetCharsMethod · 0.45

Tested by

no test coverage detected