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

Function load_context

source/binding/NodeJS/src/apis/context.cpp:275–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275maajs::ValueType load_context(maajs::EnvType env)
276{
277 maajs::FunctionType ctor;
278 maajs::NativeClass<ContextImpl>::init(env, ctor);
279 ExtContext::get(env)->contextCtor = maajs::PersistentFunction(ctor);
280 return ctor;
281}

Callers 1

initFunction · 0.85

Calls 2

initFunction · 0.70
PersistentFunctionFunction · 0.50

Tested by

no test coverage detected