Changeset 7375 for trunk/psLib/src/math/psConstants.h
- Timestamp:
- Jun 6, 2006, 3:22:12 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psConstants.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psConstants.h
r7277 r7375 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.8 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-06-0 1 23:02:59$8 * @version $Revision: 1.88 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-06-07 01:22:12 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 153 153 } 154 154 155 #define PS_ASSERT_FLOAT_LESS_THAN(NAME1, NAME2, RVAL) \ 156 if (!((NAME1) < (NAME2))) { \ 157 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 158 "Error: !(%s < %s) (%f %f).", \ 159 #NAME1, #NAME2, NAME1, NAME2); \ 160 return(RVAL); \ 161 } 162 163 #define PS_ASSERT_FLOAT_LESS_THAN_OR_EQUAL(NAME1, NAME2, RVAL) \ 164 if (!((NAME1) <= (NAME2))) { \ 165 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 166 "Error: !(%s <= %s) (%f %f).", \ 167 #NAME1, #NAME2, NAME1, NAME2); \ 168 return(RVAL); \ 169 } 170 155 171 #define PS_ASSERT_FLOAT_NON_EQUAL(NAME1, NAME2, RVAL) \ 156 172 if (fabs((NAME2) - (NAME1)) < FLT_EPSILON) { \
Note:
See TracChangeset
for help on using the changeset viewer.
