MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FindMethod

Function FindMethod

Source/Engine/Scripting/BinaryModule.cpp:832–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830namespace
831{
832 MMethod* FindMethod(MClass* mclass, const MMethod* referenceMethod)
833 {
834 const auto& methods = mclass->GetMethods();
835 for (int32 i = 0; i < methods.Count(); i++)
836 {
837 MMethod* method = methods[i];
838 if (!method->IsStatic() &&
839 method->GetName() == referenceMethod->GetName() &&
840 method->GetParametersCount() == referenceMethod->GetParametersCount() &&
841 method->GetReturnType() == referenceMethod->GetReturnType()
842 )
843 {
844 return method;
845 }
846 }
847 return nullptr;
848 }
849}
850
851#endif

Callers 2

FindMethodMethod · 0.70
InitTypeMethod · 0.70

Calls 6

IsStaticMethod · 0.80
GetMethodsMethod · 0.45
CountMethod · 0.45
GetNameMethod · 0.45
GetParametersCountMethod · 0.45
GetReturnTypeMethod · 0.45

Tested by

no test coverage detected