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

Method FindClassTentative

src/common/objects/dobjtype.cpp:641–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639//==========================================================================
640
641PClass *PClass::FindClassTentative(FName name)
642{
643 if (name == NAME_None)
644 {
645 return nullptr;
646 }
647
648 PClass *found = FindClass(name);
649 if (found != nullptr) return found;
650
651 PClass *type = new PClass;
652 DPrintf(DMSG_SPAMMY, "Creating placeholder class %s : %s\n", name.GetChars(), TypeName.GetChars());
653
654 Derive(type, name);
655 type->Size = TentativeClass;
656
657 type->InsertIntoHash(false);
658 return type;
659}
660
661//==========================================================================
662//

Callers 4

FindClassTentativeFunction · 0.80
DispatchScriptPropertyFunction · 0.80
CreateClassTypesMethod · 0.80

Calls 3

DPrintfFunction · 0.85
InsertIntoHashMethod · 0.80
GetCharsMethod · 0.45

Tested by

no test coverage detected