| 14 | } |
| 15 | |
| 16 | static void add_controller_sink(maajs::FunctionType func) |
| 17 | { |
| 18 | auto ctx = std::make_unique<maajs::CallbackContext>(func, "ControllerSink"); |
| 19 | QuickJSRuntimeBridgeInterface::get(func.Env())->plugin_add_sink(QuickJSRuntimeBridgeInterface::Controller, ControllerSink, ctx.get()); |
| 20 | ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx)); |
| 21 | } |
| 22 | |
| 23 | static void add_tasker_sink(maajs::FunctionType func) |
| 24 | { |
nothing calls this directly
no test coverage detected