MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / classCall

Function classCall

src/platform/linux/wayland.cpp:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 // Helper to call C++ method from wayland C callback
38 template<class T, class Method, Method m, class... Params>
39 static auto classCall(void *data, Params... params) -> decltype(((*reinterpret_cast<T *>(data)).*m)(params...)) {
40 return ((*reinterpret_cast<T *>(data)).*m)(params...);
41 }
42
43#define CLASS_CALL(c, m) classCall<c, decltype(&c::m), &c::m>
44

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected