MCPcopy Create free account
hub / github.com/Tracktion/choc / prepareForCall

Method prepareForCall

choc/javascript/choc_javascript_V8.h:227–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 void pushArg (bool v) override { currentCallContext->functionArgs.emplace_back (v8::Boolean::New (isolate, v)); }
226
227 void prepareForCall (std::string_view name, uint32_t numArgs) override
228 {
229 currentCallContext = std::make_unique<CurrentCallContext> (*this);
230 currentCallContext->functionName = stringToV8 (name, v8::NewStringType::kInternalized);
231 currentCallContext->functionArgs.reserve (numArgs);
232 }
233
234 choc::value::Value performCall() override
235 {

Callers 2

invokeMethod · 0.80
invokeWithArgListMethod · 0.80

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected