| 639 | //========================================================================== |
| 640 | |
| 641 | PClass *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 | // |
no test coverage detected