MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / BindData

Function BindData

source/binding/NodeJS/src/plugin/runtime.cpp:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16template <typename Type>
17inline auto BindData(QuickJSRuntimeBridgeInterface::SinkFunc func, void* data)
18{
19 return [func, data](Type* handle, const char* msg, const char* details) {
20 func(handle, msg, details, data);
21 };
22}
23
24struct QuickJSRuntimeData : public QuickJSRuntimeBridgeInterface
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected