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

Function CanNarrowTo

source/common/scripting/backend/codegen.cpp:12521–12524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12519static bool AreCompatibleFnPtrs(PFunctionPointer * to, PFunctionPointer * from);
12520
12521bool CanNarrowTo(PClass * from, PClass * to)
12522{
12523 return from->IsAncestorOf(to);
12524}
12525
12526bool CanWidenTo(PClass * from, PClass * to)
12527{

Callers 1

AreCompatibleFnPtrTypesFunction · 0.85

Calls 1

IsAncestorOfMethod · 0.80

Tested by

no test coverage detected