Example: Cause abnormal program termination (Abort)

public static void shutdown () {
Process.abort ();
}

public static int main (string[] args) {
// Output: ``Aborted``
shutdown ();
print ("You can't see ne!\n");
return 0;
}

 valac --pkg glib-2.0 GLib.Process.abort.vala

See:




2022 vala-language.org