| 46 | } |
| 47 | |
| 48 | static void add_context_sink(maajs::FunctionType func) |
| 49 | { |
| 50 | auto ctx = std::make_unique<maajs::CallbackContext>(func, "ContextSink"); |
| 51 | MaaAgentServerAddContextSink(ContextSink, ctx.get()); |
| 52 | ExtContext::get(func.Env())->globalCallbacks.push_back(std::move(ctx)); |
| 53 | } |
| 54 | |
| 55 | static maajs::PromiseType start_up(maajs::EnvType env, std::string identifier) |
| 56 | { |
nothing calls this directly
no test coverage detected