MCPcopy Create free account
hub / github.com/christophhart/HISE / getSnippetAsFunction

Method getSnippetAsFunction

hi_scripting/scripting/ScriptProcessor.cpp:2250–2257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2248}
2249
2250String JavascriptProcessor::SnippetDocument::getSnippetAsFunction() const
2251{
2252 SpinLock::ScopedLockType sl(pendingLock);
2253
2254 if (isSnippetEmpty()) return emptyText;
2255 else if (pendingNewContent.isNotEmpty()) return pendingNewContent;
2256 else return getAllContent();
2257}
2258
2259JavascriptProcessor::CompileThread::CompileThread(JavascriptProcessor *processor) :
2260ThreadWithProgressWindow("Compiling", true, false),

Callers 2

compileInternalMethod · 0.80

Calls 1

isNotEmptyMethod · 0.45

Tested by

no test coverage detected