Changeset 12290 for trunk/psLib/src/sys/psAssert.h
- Timestamp:
- Mar 6, 2007, 4:50:54 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psAssert.h (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psAssert.h
r11265 r12290 74 74 if ((int)(NAME) < LOWER || (int)(NAME) > UPPER) { \ 75 75 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 76 "Error: %s, % d, is out of range. Must be between %d and %d.", \77 #NAME,( int)NAME,LOWER,UPPER); \76 "Error: %s, %ld, is out of range. Must be between %ld and %ld.", \ 77 #NAME,(long)(NAME),(long)(LOWER),(long)(UPPER)); \ 78 78 return RVAL; \ 79 79 } … … 82 82 if (!(VAR1 < VAR2)) { \ 83 83 psError(PS_ERR_UNKNOWN, true, \ 84 "Error: %s is not less than %s (% d, %d)", #VAR1, #VAR2, VAR1, VAR2); \84 "Error: %s is not less than %s (%ld, %ld)", #VAR1, #VAR2, (long)(VAR1), (long)(VAR2)); \ 85 85 return(RVAL); \ 86 86 } … … 89 89 if (!(VAR1 <= VAR2)) { \ 90 90 psError(PS_ERR_UNKNOWN, true, \ 91 "Error: %s is not less than %s (% d, %d)", #VAR1, #VAR2, VAR1, VAR2); \91 "Error: %s is not less than %s (%ld, %ld)", #VAR1, #VAR2, (long)(VAR1), (long)(VAR2)); \ 92 92 return(RVAL); \ 93 93 } … … 96 96 if (!((NAME1) > (NAME2))) { \ 97 97 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 98 "Error: !(%s > %s) (% d %d).", \99 #NAME1, #NAME2, NAME1, NAME2); \98 "Error: !(%s > %s) (%ld %ld).", \ 99 #NAME1, #NAME2,(long)(NAME1), long)(NAME2)); \ 100 100 return(RVAL); \ 101 101 } … … 104 104 if (!((NAME1) >= (NAME2))) { \ 105 105 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 106 "Error: !(%s >= %s) (% d %d).", \107 #NAME1, #NAME2, NAME1, NAME2); \106 "Error: !(%s >= %s) (%ld %ld).", \ 107 #NAME1, #NAME2, (long)(NAME1), (long)(NAME2)); \ 108 108 return(RVAL); \ 109 109 } … … 111 111 if (!((NAME1) > (NAME2))) { \ 112 112 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 113 "Error: !(%s > %s) (% f %f).", \114 #NAME1, #NAME2, NAME1, NAME2); \113 "Error: !(%s > %s) (%lf %lf).", \ 114 #NAME1, #NAME2, (double)(NAME1), (double)(NAME2)); \ 115 115 return(RVAL); \ 116 116 } … … 119 119 if (!((NAME1) >= (NAME2))) { \ 120 120 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 121 "Error: !(%s >= %s) (% f %f).", \122 #NAME1, #NAME2, NAME1, NAME2); \121 "Error: !(%s >= %s) (%lf %lf).", \ 122 #NAME1, #NAME2, (double)(NAME1), (double)(NAME2)); \ 123 123 return(RVAL); \ 124 124 } … … 127 127 if (!((NAME1) < (NAME2))) { \ 128 128 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 129 "Error: !(%s < %s) (% f %f).", \130 #NAME1, #NAME2, NAME1, NAME2); \129 "Error: !(%s < %s) (%lf %lf).", \ 130 #NAME1, #NAME2, (double)(NAME1), (double)(NAME2)); \ 131 131 return(RVAL); \ 132 132 } … … 135 135 if (!((NAME1) <= (NAME2))) { \ 136 136 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 137 "Error: !(%s <= %s) (% f %f).", \138 #NAME1, #NAME2, NAME1, NAME2); \137 "Error: !(%s <= %s) (%lf %lf).", \ 138 #NAME1, #NAME2, (double)(NAME1), (double)(NAME2)); \ 139 139 return(RVAL); \ 140 140 } … … 160 160 if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \ 161 161 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 162 "Error: %s, %f, is out of range. Must be between % f and %f.", \163 #NAME, NAME, LOWER, UPPER); \162 "Error: %s, %f, is out of range. Must be between %lf and %lf.", \ 163 #NAME, NAME, (double)(LOWER), (double)(UPPER)); \ 164 164 return RVAL; \ 165 165 } … … 168 168 if (!isfinite(NAME)) { \ 169 169 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 170 "Error: %s=% f is not a real value.\n", \171 #NAME, NAME); \170 "Error: %s=%lf is not a real value.\n", \ 171 #NAME, (double)(NAME)); \ 172 172 return RVAL; \ 173 173 }
Note:
See TracChangeset
for help on using the changeset viewer.
