Changeset 17446 for trunk/psLib/src/sys/psAbort.h
- Timestamp:
- Apr 12, 2008, 10:18:27 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psAbort.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psAbort.h
r14452 r17446 10 10 * @author Joshua Hoblitt, University of Hawaii 11 11 * 12 * $Revision: 1.1 5$ $Name: not supported by cvs2svn $13 * $Date: 200 7-08-09 01:40:07 $12 * $Revision: 1.16 $ $Name: not supported by cvs2svn $ 13 * $Date: 2008-04-13 08:18:27 $ 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 15 15 */ … … 54 54 #endif // ifdef DOXYGEN 55 55 56 /** Reports an abort message to logging facility 57 * 58 * This function will invoke the psLogMsg function with a level of 59 * PS_LOG_ABORT and pass the parameters name and fmt to generate a proper 60 * log message. After logging, this function will call system abort 61 * function to abnormally terminate the program. 62 * 63 * @return void No return value 64 * 65 */ 66 #ifdef DOXYGEN 67 void psAssert( 68 const bool value, 69 const char *format, ///< A printf style formatting statement 70 ... 71 ); 72 #else // ifdef DOXYGEN 73 void p_psAssert( 74 const char *file, ///< File of caller 75 unsigned int lineno, ///< Line number of caller 76 const char *func, ///< Function name of caller 77 const bool value, 78 const char *format, ///< A printf style formatting statement 79 ... 80 ) PS_ATTR_FORMAT(printf, 5, 6); 81 #ifndef SWIG 82 #define psAssert(VALUE, ...) \ 83 p_psAssert(__FILE__, __LINE__, __func__, (VALUE), __VA_ARGS__) 84 #endif // iddef SWIG 85 #endif // ifdef DOXYGEN 86 56 87 /// @} 57 88 #endif // #ifndef PS_ABORT_H
Note:
See TracChangeset
for help on using the changeset viewer.
