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

Method createArray

hi_scripting/scripting/api/FixLayoutObjects.cpp:347–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347var Factory::createArray(int numElements)
348{
349 if (initResult.wasOk())
350 {
351 auto newElement = new Array(getScriptProcessor(), numElements);
352 newElement->compareFunction = compareFunction;
353 newElement->init(this);
354 arrays.add(newElement);
355 return var(newElement);
356 }
357
358 return {};
359}
360
361var Factory::createStack(int numElements)
362{

Callers

nothing calls this directly

Calls 4

varFunction · 0.85
wasOkMethod · 0.45
initMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected