Example #1
0
int exit(int status)
{
   /* Destroy all constructed global objects */
   __cexit_call_dtors();

   /* Destroy all constructed global objects */
   while (TRUE) {
   }
}
Example #2
0
void exit(int status)
{
#if MQX_ENABLE_CPP || BSPCFG_ENABLE_CPP
    /* Destroy all constructed global objects */
    __cexit_call_dtors();
#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) {
    }
}