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

Function init_module_maa

source/binding/NodeJS/src/apis/loader.cpp:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64#ifdef MAA_JS_IMPL_IS_QUICKJS
65void init_module_maa(JSContext* ctx)
66{
67 maajs::EnvType env { ctx };
68
69 auto maa = ::init(env);
70
71 maajs::BindValue(env.Global(), "maa", maa);
72}
73
74void maa_rt_print(maajs::ValueType value)
75{

Callers 1

load_modulesMethod · 0.85

Calls 3

GlobalMethod · 0.80
initFunction · 0.70
BindValueFunction · 0.50

Tested by

no test coverage detected