Logo Search packages:      
Sourcecode: sam2p version File versions

void Error::cexit ( int  exitCode  )  [static]

Executes the cleanups (in reverse-registration order), and exits from the current process with the specified or higher exit code.

Definition at line 137 of file error.cpp.

References Error::Cleanup::handler, and Error::Cleanup::next.

  Cleanup *next;
  int exit2;
  while (first_cleanup!=NULLP) {
    // fprintf(stderr, "hand %p\n", first_cleanup);
    if (exitCode<(exit2=first_cleanup->handler(first_cleanup))) exitCode=exit2;
    delete [] (char*)first_cleanup; /* Allocated from as an array, but has no destructors. */
  #if _MSC_VER > 1000
    exit(exitCode); /* <stdlib.h> */

Generated by  Doxygen 1.6.0   Back to index