psAbort.h

Go to the documentation of this file.
00001 /** @file  psAbort.h
00002  *
00003  *  @brief Contains the declarations for the abort function
00004  *
00005  *  The abort logging and handling shall be performed by psAbort function.
00006  *  This will allow for consistent handling of other software units
00007  *  needing to abort from program execution.
00008  *
00009  *  @author Eric Van Alst, MHPCC
00010  *
00011  *  $Revision: 1.13 $ $Name:  $
00012  *  $Date: 2007/01/23 22:47:23 $
00013  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
00014  */
00015 
00016 #ifndef PS_ABORT_H
00017 #define PS_ABORT_H
00018 
00019 /// @addtogroup SysUtils System Utilities
00020 /// @{
00021 
00022 /** Reports an abort message to logging facility
00023  *
00024  *  This function will invoke the psLogMsg function with a level of
00025  *  PS_LOG_ABORT and pass the parameters name and fmt to generate a proper
00026  *  log message.  After logging, this function will call system abort
00027  *  function to abnormally terminate the program.
00028  *
00029  *  @return  void No return value
00030  *
00031  */
00032 #ifdef __GNUC__
00033 void psAbort(
00034     const char *name,                  ///< Source of abort such as file or function detected
00035     const char *format,                   ///< A printf style formatting statement defining msg
00036     ...
00037 ) __attribute__((format(printf, 2, 3)));
00038 #else // __GNUC__
00039 void psAbort(
00040     const char *name,                  ///< Source of abort such as file or function detected
00041     const char *format,                   ///< A printf style formatting statement defining msg
00042     ...
00043 );
00044 #endif // __GNUC__
00045 
00046 /// @}
00047 #endif // #ifndef PS_ABORT_H

Generated on Fri Feb 2 22:24:35 2007 for pslib by  doxygen 1.5.1