Changeset 8627 for trunk/psLib/src/sys/psError.h
- Timestamp:
- Aug 25, 2006, 6:34:28 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psError.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.h
r8231 r8627 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-08- 08 23:11:25$14 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-08-26 04:34:28 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 92 92 * 93 93 */ 94 #ifdef __GNUC__ 94 95 void psErrorStackPrint( 95 96 FILE* fd, ///< destination file descriptor 96 const char* format, ///< printf-style format of header line 97 ... ///< any parameters required in fmt 98 ); 97 const char* format, ///< printf-style format of header line 98 ... ///< any parameters required in fmt 99 ) __attribute__((format(printf, 2, 3))); 100 #else // __GNUC__ 101 void psErrorStackPrint( 102 FILE* fd, ///< destination file descriptor 103 const char* format, ///< printf-style format of header line 104 ... ///< any parameters required in fmt 105 ); 106 #endif // __GNUC__ 107 99 108 100 109 #ifndef SWIG … … 155 164 * @return psErrorcode the given error code 156 165 */ 166 #ifdef __GNUC__ 157 167 psErrorCode p_psError( 158 168 const char* filename, ///< file name … … 163 173 const char* format, ///< printf-style format of header line 164 174 ... ///< any parameters required in fmt 165 ); 175 ) __attribute__((format(printf, 6, 7))); 176 #else // __GNUC__ 177 psErrorCode p_psError( 178 const char* filename, ///< file name 179 unsigned int lineno, ///< line number in file 180 const char* func, ///< function name 181 psErrorCode code, ///< Error class code 182 bool new, ///< true if error originates at this location 183 const char* format, ///< printf-style format of header line 184 ... ///< any parameters required in fmt 185 ); 186 #endif // __GNUC__ 166 187 167 188 /** Logs a warning message. … … 172 193 * 173 194 */ 195 #ifdef __GNUC__ 174 196 void p_psWarning( 175 197 const char* file, ///< file name 176 198 int lineno, ///< line number in file 177 199 const char* func, ///< function name 178 const char* fmt, ///< printf-style format of header line 179 ... ///< any parameters required in fmt 180 ); 200 const char* format, ///< printf-style format of header line 201 ... ///< any parameters required in fmt 202 ) __attribute__((format(printf, 4, 5))); 203 #else // __GNUC__ 204 void p_psWarning( 205 const char* file, ///< file name 206 int lineno, ///< line number in file 207 const char* func, ///< function name 208 const char* format, ///< printf-style format of header line 209 ... ///< any parameters required in fmt 210 ); 211 #endif // __GNUC__ 181 212 182 213
Note:
See TracChangeset
for help on using the changeset viewer.
