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

Method exit

ij/src/main/java/ij/macro/Functions.java:2987–2999  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2985 }
2986
2987 void exit() {
2988 String msg = null;
2989 if (interp.nextToken()=='(') {
2990 interp.getLeftParen();
2991 if (interp.nextToken()!=')')
2992 msg = getString();
2993 interp.getRightParen();
2994 }
2995 interp.finishUp();
2996 if (msg!=null)
2997 IJ.showMessage("Macro", msg);
2998 throw new RuntimeException(Macro.MACRO_CANCELED);
2999 }
3000
3001 private void showStatus () {
3002 interp.getLeftParen();

Callers 2

doFunctionMethod · 0.95
runMethod · 0.45

Calls 6

getStringMethod · 0.95
showMessageMethod · 0.95
getLeftParenMethod · 0.80
getRightParenMethod · 0.80
finishUpMethod · 0.80
nextTokenMethod · 0.45

Tested by

no test coverage detected