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

Method ctor

source/binding/NodeJS/src/apis/client.cpp:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119ClientImpl* ClientImpl::ctor(const maajs::CallbackInfo& info)
120{
121 try {
122 auto params = maajs::UnWrapArgs<std::tuple<maajs::OptionalParam<std::string>>>(info);
123 return new ClientImpl { std::get<0>(params).value_or("") };
124 }
125 catch (std::exception&) {
126 return nullptr;
127 }
128}
129
130void ClientImpl::init_proto(maajs::ObjectType proto, maajs::FunctionType)
131{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected