MCPcopy Create free account
hub / github.com/ZDoom/Raze / GetVirtualIndex

Function GetVirtualIndex

source/common/objects/dobjtype.cpp:1006–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006unsigned GetVirtualIndex(PClass *cls, const char *funcname)
1007{
1008 // Look up the virtual function index in the defining class because this may have gotten overloaded in subclasses with something different than a virtual override.
1009 auto sym = dyn_cast<PFunction>(cls->FindSymbol(funcname, false));
1010 assert(sym != nullptr);
1011 auto VIndex = sym->Variants[0].Implementation->VirtualIndex;
1012 return VIndex;
1013}
1014
1015
1016void PClass::InitializeDefaults()

Callers 1

FinalizeSetupMethod · 0.85

Calls 1

FindSymbolMethod · 0.45

Tested by

no test coverage detected