java.lang.Shutdown$_native Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qbicc-rt-java.base Show documentation
Show all versions of qbicc-rt-java.base Show documentation
The Qbicc builder for the java.base JDK module
package java.lang;
import static org.qbicc.runtime.CNative.*;
import static org.qbicc.runtime.stdc.Stdlib.*;
import org.qbicc.runtime.Build;
class Shutdown$_native {
static void beforeHalt() {
// no operation
}
static void halt0(int status) {
if (Build.isHost()) {
throw new SecurityException("exit() during build");
}
// todo: safepoint?
// todo: wait for keypress at exit (windows)
exit(word(status));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy