Changeset 14452 for trunk/psLib/src/sys/psError.h
- Timestamp:
- Aug 8, 2007, 3:40:08 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psError.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psError.h
r11694 r14452 12 12 * @author Joshua Hoblitt, University of Hawaii 13 13 * 14 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $15 * @date $Date: 2007-0 2-08 01:59:28$14 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2007-08-09 01:40:07 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 28 28 #include<stdarg.h> 29 29 30 #include "psType.h" 30 31 #include "psErrorCodes.h" 31 32 … … 101 102 const char* format, ///< printf-style format of header line 102 103 ... ///< any parameters required in format 103 #ifdef __GNUC__ 104 ) __attribute__((format(printf, 2, 3))); 105 #else // ifdef __GNUC__ 106 ); 107 #endif // ifdef __GNUC__ 108 104 ) PS_ATTR_FORMAT(printf, 2, 3); 109 105 110 106 #ifndef SWIG … … 151 147 const char* format, ///< printf-style format of header line 152 148 ... ///< any parameters required in format 153 #ifdef __GNUC__ 154 ) __attribute__((format(printf, 6, 7))); 155 #else // ifdef __GNUC__ 156 ); 157 #endif // ifdef __GNUC__ 149 ) PS_ATTR_FORMAT(printf, 6, 7); 158 150 #ifndef SWIG 159 151 #define psError(code,new,...) \ … … 182 174 const char* format, ///< printf-style format of header line 183 175 ... ///< any parameters required in format 184 #ifdef __GNUC__ 185 ) __attribute__((format(printf, 4, 5))); 186 #else // ifdef __GNUC__ 187 ); 188 #endif // ifdef __GNUC__ 176 ) PS_ATTR_FORMAT(printf, 4, 5); 189 177 #ifndef SWIG 190 178 #define psWarning(...) \ … … 204 192 psErrorCode code, ///< Error class code 205 193 const char* msg ///< Error message 206 ) ;194 ) PS_ATTR_MALLOC; 207 195 208 196 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
