C language constructs available under C++

Among the C language constructs that terminate an enclave are abort(), exit(), raise(SIGABRT), and raise(SIGTERM). Destructors are run at library termination.

If you call abort(), raise(SIGABRT), or exit(), the T_I_S (Termination Imminent Due to STOP) condition is raised. After T_I_S has been processed and all user code has been removed from the stack, the C atexit list is honored.