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

Function NativeClassCast

source/common/scripting/backend/codegen.cpp:12460–12463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12458//==========================================================================
12459
12460static PClass *NativeClassCast(PClass *from, PClass *to)
12461{
12462 return from && to && from->IsDescendantOf(to) ? from : nullptr;
12463}
12464
12465DEFINE_ACTION_FUNCTION_NATIVE(DObject, BuiltinClassCast, NativeClassCast)
12466{

Callers 1

Calls 1

IsDescendantOfMethod · 0.80

Tested by

no test coverage detected