Changeset 4581 for trunk/psLib/src/math/psConstants.h
- Timestamp:
- Jul 19, 2005, 3:21:13 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psConstants.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psConstants.h
r4419 r4581 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.7 4$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 6-28 23:28:31$8 * @version $Revision: 1.75 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-07-20 01:21:13 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 201 201 } 202 202 203 #define PS_ASSERT_DOUBLE_WITHIN_RANGE(NAME, LOWER, UPPER, RVAL) \ 204 if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \ 205 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 206 "Error: %s, %lf, is out of range. Must be between %lf and %lf.", \ 207 #NAME, NAME, LOWER, UPPER); \ 208 return RVAL; \ 209 } 210 203 211 // Return an error if the arg lies outside the supplied range 204 212 #define PS_ASSERT_LONG_WITHIN_RANGE(NAME, LOWER, UPPER, RVAL) \
Note:
See TracChangeset
for help on using the changeset viewer.
