Changeset 196 for trunk/archive/pslib/include/psMisc.h
- Timestamp:
- Mar 9, 2004, 5:19:15 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
r181 r196 1 1 #if !defined(PS_MISC_H) 2 2 #define PS_MISC_H 3 /* 3 /** 4 4 * Concatenate two macro arguments 5 5 */ 6 #define P_PS_CONCAT(A, B) A ## B // Expands to AB7 #define PS_CONCAT(A, B) A ## B // Also Expands to AB8 #define PS_CONCAT2(A, B) PS_CONCAT(A, B) // Also expands to AB9 #define PS_CONCAT3(A, B, C) A ## B ## C // Expands to ABC10 #define PS_CONCAT4(A, B, C, D) A ## B ## C ## D // Expands to ABCD6 #define P_PS_CONCAT(A, B) A ## B //!< Expands to AB 7 #define PS_CONCAT(A, B) A ## B //!< Also Expands to AB 8 #define PS_CONCAT2(A, B) PS_CONCAT(A, B) //!< Also expands to AB 9 #define PS_CONCAT3(A, B, C) A ## B ## C //!< Expands to ABC 10 #define PS_CONCAT4(A, B, C, D) A ## B ## C ## D //!< Expands to ABCD 11 11 12 #define PS_STRING(S) #S // converts argument to string12 #define PS_STRING(S) #S //!< converts argument to string 13 13 14 void psAbort(const char *name, const char *fmt, ...); 15 void psError(const char *name, const char *fmt, ...); 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 ); 19 /** Prints an error message and doesn't abort */ 20 void psError(const char *name, //!< Category of code that caused the abort 21 const char *fmt, //!< Format 22 ... //!< Extra arguments to use format 23 ); 16 24 17 char *psStringCopy(const char *str); 25 /** Allocates and returns a copy of a string */ 26 char *psStringCopy(const char *str //!< string to copy 27 ); 18 28 19 29 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
