| 39 | } |
| 40 | |
| 41 | static void add_tasker_sink(maajs::FunctionType func) |
| 42 | { |
| 43 | auto ctx = std::make_unique<maajs::CallbackContext>(func, "TaskerSink"); |
| 44 | MaaAgentServerAddTaskerSink(TaskerSink, ctx.get()); |
| 45 | ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx)); |
| 46 | } |
| 47 | |
| 48 | static void add_context_sink(maajs::FunctionType func) |
| 49 | { |
nothing calls this directly
no test coverage detected