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

Method checkIfScriptActive

hi_scripting/scripting/ScriptProcessor.cpp:2236–2248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2234}
2235
2236void JavascriptProcessor::SnippetDocument::checkIfScriptActive()
2237{
2238 isActive = true;
2239 auto text = getSnippetAsFunction();
2240
2241 if (!text.containsNonWhitespaceChars()) isActive = false;
2242
2243 String trimmedText = text.removeCharacters(" \t\n\r");
2244
2245 String trimmedEmptyText = emptyText.removeCharacters(" \t\n\r");
2246
2247 if (trimmedEmptyText == trimmedText) isActive = false;
2248}
2249
2250String JavascriptProcessor::SnippetDocument::getSnippetAsFunction() const
2251{

Callers 1

compileInternalMethod · 0.80

Calls 2

removeCharactersMethod · 0.80

Tested by

no test coverage detected