| 378 | |
| 379 | template <typename T, typename... P> |
| 380 | MethodBind *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 |
no outgoing calls
no test coverage detected