MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / push

Method push

ij/src/main/java/ij/macro/Interpreter.java:1880–1889  ·  view source on GitHub ↗
(Variable var, Interpreter interp)

Source from the content-addressed store, hash-verified

1878 }
1879
1880 Variable push(Variable var, Interpreter interp) {
1881 if (stack==null)
1882 stack = new Variable[STACK_SIZE];
1883 if (topOfStack>=(STACK_SIZE-2))
1884 interp.error("Stack overflow");
1885 else
1886 topOfStack++;
1887 stack[topOfStack] = var;
1888 return var;
1889 }
1890
1891 void pushGlobals() {
1892 if (pgm.globals==null)

Callers 15

pushArgsMethod · 0.95
doStringAssignmentMethod · 0.95
doArrayAssignmentMethod · 0.95
doVarMethod · 0.95
getVariableMethod · 0.45
getArrayVariableMethod · 0.45
buildRowMethod · 0.45
buildColumnMethod · 0.45
SectionWriterMethod · 0.45

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected