Changeset 257 for trunk/archive/pslib/include/psMisc.h
- Timestamp:
- Mar 18, 2004, 9:37:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psMisc.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psMisc.h
r247 r257 7 7 */ 8 8 9 #define PS_STRING(S) #S //!< converts argument to string 9 /** Functions **************************************************************/ 10 /** \addtogroup SystemGroup System Utilities 11 * \{ 12 */ 10 13 11 /** Prints an error message and aborts */ 12 void psAbort(const char *name, //!< Category of code that caused the abort 13 const char *fmt, //!< Format 14 ... //!< Extra arguments to use format 15 ); 16 /** Prints an error message and doesn't abort */ 17 void psError(const char *name, //!< Category of code that caused the abort 18 const char *fmt, //!< Format 19 ... //!< Extra arguments to use format 20 ); 14 /// Prints an error message and aborts 15 void psAbort(const char *name, ///< Category of code that caused the abort 16 const char *fmt, ///< Format 17 ...) ///< Extra arguments to use format 18 ; 21 19 22 /** Allocates and returns a copy of a string */ 23 char *psStringCopy(const char *str //!< string to copy 24 ); 20 /// Prints an error message and doesn't abort 21 void psError(const char *name, ///< Category of code that caused the abort 22 const char *fmt, ///< Format 23 ...) ///< Extra arguments to use format 24 ; 25 25 26 /** Magic values for errors */ 26 /// Allocates and returns a copy of a string 27 char *psStringCopy(const char *str) ///< string to copy 28 ; 29 30 /* \} */ // End of SystemGroup Functions 31 32 #define PS_STRING(S) #S ///< converts argument to string 33 34 /// Magic values for errors 27 35 enum { 28 PS_NO_VALUE = -111, // !< Corresponding value not yet measured29 PS_NO_ERROR = -222 // !< Corresponding value has no error36 PS_NO_VALUE = -111, ///< Corresponding value not yet measured 37 PS_NO_ERROR = -222 ///< Corresponding value has no error 30 38 }; 31 39
Note:
See TracChangeset
for help on using the changeset viewer.
