The wiki says that exit will exit the script:
However, when running the following script on r19401:
The following output is repeated until Esc is pressed:
exit
Exits the script. Using return when in main() achieves the same effect. Note that while this will end the current script, it will not stop automation.
However, when running the following script on r19401:
Code:
int method3() {
print("method3");
exit;
}
int method2() {
print("method2");
method3();
return 1;
}
void method1() {
int a = 0;
while (a < 10) {
print("method1 " + a);
a += method2();
}
}
void main() {
method1();
print("done");
}
The following output is repeated until Esc is pressed:
method1 0
method2
method3