void nf_exit(long exitval) { long id; if(nf_ok && (id = nf_id("NF_EXIT"))) { nf_call(id, exitval); } else { /* NF_EXIT is Hatari specific, NF_SHUTDOWN isn't */ Cconws("NF_EXIT unavailable, trying NF_SHUTDOWN...\r\n"); nf_shutdown(); } }
/* Try to shutdown the machine. This may fail. */ static void shutdown(void) { #if DETECT_NATIVE_FEATURES nf_shutdown(); #endif #ifdef MACHINE_FIREBEE firebee_shutdown(); #elif defined(MACHINE_AMIGA) amiga_shutdown(); #endif }