extern void exit(int status) { #pragma unused(status) #if (defined(__cplusplus) || defined(__VEC__)) && !defined(DO_NOT_LOAD_CTORS_DTORS) __fini_cpp(); #endif _ExitProcess(); }
void _exit(int status) { #if MQX_ENABLE_CPP || BSPCFG_ENABLE_CPP /* Semi-normal CodeWarrior shutdown sequence */ __destroy_global_chain(); __fini_cpp(); #endif /* MQX_ENABLE_CPP || BSPCFG_ENABLE_CPP */ /* ** Change for whatever is appropriate for your board ** and application. Perhaps a software reset or ** some kind of trap/call to the kernel soft re-boot. */ while (TRUE) { } }
/*FUNCTION*------------------------------------------------------------------- * * Function Name : __exit * Returned Value : none * Comments : * Final exit function * *END*----------------------------------------------------------------------*/ int __exit(int status) { // Semi-normal Codewarrior shutdown sequence #if BSPCFG_ENABLE_CPP __destroy_global_chain(); __fini_cpp(); #endif /* ** Change for whatever is appropriate for your board ** and application. Perhaps a software reset or ** some kind of trap/call to the kernel soft re-boot. */ _ExitProcess(); return(0); }