Changeset 8627 for trunk/psLib/src/sys/psAssert.h
- Timestamp:
- Aug 25, 2006, 6:34:28 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psAssert.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psAssert.h
r8409 r8627 3 3 4 4 #include <assert.h> 5 #include <inttypes.h> 6 5 7 #include "psError.h" 6 8 #include "psLogMsg.h" … … 155 157 if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \ 156 158 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 157 "Error: %s, %lld, is out of range.", \ 159 "Error: %s, %ld, is out of range. Must be between %ld and %ld.", \ 160 #NAME, NAME, LOWER, UPPER); \ 161 return RVAL; \ 162 } 163 164 #define PS_ASSERT_LONG_LARGER_THAN_OR_EQUAL(NAME1, NAME2, RVAL) \ 165 if (!((NAME1) >= (NAME2))) { \ 166 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Error: !(%s >= %s) (%ld %ld).",\ 167 #NAME1, #NAME2, NAME1, NAME2); \ 168 return(RVAL); \ 169 } 170 171 #define PS_ASSERT_S64_WITHIN_RANGE(NAME, LOWER, UPPER, RVAL) \ 172 if ((NAME) < (LOWER) || (NAME) > (UPPER)) { \ 173 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 174 "Error: %s, %" PRId64 ", is out of range. Must be between %" PRId64 " and %" PRId64 ".", \ 158 175 #NAME, NAME, LOWER, UPPER); \ 159 176 return RVAL; \
Note:
See TracChangeset
for help on using the changeset viewer.
