MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / create_method_bind

Function create_method_bind

core/object/method_bind.h:380–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378
379template <typename T, typename... P>
380MethodBind *create_method_bind(void (T::*p_method)(P...)) {
381#ifdef TYPED_METHOD_BIND
382 MethodBind *a = memnew((MethodBindT<T, P...>)(p_method));
383#else
384 MethodBind *a = memnew((MethodBindT<P...>)(reinterpret_cast<void (MB_T::*)(P...)>(p_method)));
385#endif
386 a->set_instance_class(T::get_class_static());
387 return a;
388}
389
390// no return, const
391

Callers 4

register_propertyMethod · 0.85
bind_methodMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected