Changeset 2304
- Timestamp:
- Nov 8, 2004, 2:41:35 PM (22 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
dataManip/psConstants.h (modified) (3 diffs)
-
math/psConstants.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psConstants.h
r2293 r2304 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-11-0 6 00:56:28$8 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-11-09 00:41:35 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 31 31 *****************************************************************************/ 32 33 #define PS_INT_CHECK_EQUALS(NAME1, NAME2, RVAL) \ 34 if (NAME1 == NAME2) { \ 35 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 36 "Error: %s and %s are equal.", \ 37 #NAME1, #NAME2); \ 38 return(RVAL); \ 39 } 40 32 41 #define PS_INT_CHECK_NON_NEGATIVE(NAME, RVAL) \ 33 42 if (NAME < 0) { \ … … 355 364 356 365 /***************************************************************************** 357 Misc. macros: 366 Misc. macros: 358 367 *****************************************************************************/ 359 368 #define PS_MAX(A, B) \ -
trunk/psLib/src/math/psConstants.h
r2293 r2304 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-11-0 6 00:56:28$8 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-11-09 00:41:35 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 30 30 31 31 *****************************************************************************/ 32 33 #define PS_INT_CHECK_EQUALS(NAME1, NAME2, RVAL) \ 34 if (NAME1 == NAME2) { \ 35 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 36 "Error: %s and %s are equal.", \ 37 #NAME1, #NAME2); \ 38 return(RVAL); \ 39 } 40 32 41 #define PS_INT_CHECK_NON_NEGATIVE(NAME, RVAL) \ 33 42 if (NAME < 0) { \ … … 355 364 356 365 /***************************************************************************** 357 Misc. macros: 366 Misc. macros: 358 367 *****************************************************************************/ 359 368 #define PS_MAX(A, B) \
Note:
See TracChangeset
for help on using the changeset viewer.
