MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / self_bind

Function self_bind

core/src/pengu.h:120–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119template <int id, typename M, typename To>
120static inline void self_bind(M from, To &to) noexcept
121{
122 using traits = self_bind_traits<id, typename method_traits<M>::klass, M, To>;
123 if (traits::m_ == nullptr) traits::m_ = from;
124 to = traits::invoke;
125}
126
127/// Use __COUNTER__ to make unique static variables on the same funtion sig.
128/// `static_assert` to check method type when updating headers.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected