Changeset 9578
- Timestamp:
- Oct 13, 2006, 5:50:28 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
sys/psString.h (modified) (3 diffs)
-
types/psMetadata.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psString.h
r8610 r9578 14 14 * @author David Robbins, MHPCC 15 15 * 16 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $17 * @date $Date: 2006- 08-26 00:32:39$16 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2006-10-14 03:50:28 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 136 136 ) __attribute__((format(printf, 2, 3))); 137 137 # else // __GNUC__ 138 138 139 ssize_t psStringPrepend( 139 140 char **dest, ///< existing string … … 206 207 ); 207 208 209 210 #define PS_ASSERT_STRING_NON_EMPTY(NAME, RVAL) \ 211 if (!(NAME) || strlen(NAME) == 0) { \ 212 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 213 "Error: String %s is NULL or empty.", \ 214 #NAME); \ 215 return(RVAL); \ 216 } 217 218 208 219 /** @} */// Doxygen - End of SystemGroup Functions 209 220 -
trunk/psLib/src/types/psMetadata.h
r9549 r9578 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.9 0$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-10-1 3 22:42:28 $13 * @version $Revision: 1.91 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-10-14 03:50:28 $ 15 15 * 16 16 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1189 1189 1190 1190 1191 /// Assert on metadata with extant hash and list components 1192 #define PS_ASSERT_METADATA_NON_NULL(NAME, RVAL) \ 1193 if (!(NAME) || !(NAME)->hash || !(NAME)->list) { \ 1194 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 1195 "Error: Metadata %s or one of its components is NULL.", \ 1196 #NAME); \ 1197 return(RVAL); \ 1198 } 1199 1200 1191 1201 /// @} 1192 1202
Note:
See TracChangeset
for help on using the changeset viewer.
