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

Method registerFunction

choc/javascript/choc_javascript.h:302–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302inline void Context::registerFunction (const std::string& name, NativeFunction fn)
303{
304 CHOC_ASSERT (pimpl != nullptr); // cannot call this on a moved-from context!
305 pimpl->registerFunction (name, std::move (fn));
306}
307
308inline choc::value::Value Context::evaluateExpression (const std::string& javascriptCode)
309{

Callers 5

registerConsoleFunctionsFunction · 0.45
registerTimerFunctionsFunction · 0.45
testJavascriptPlatformFunction · 0.45

Calls

no outgoing calls

Tested by 1

testJavascriptPlatformFunction · 0.36