Changeset 12596
- Timestamp:
- Mar 27, 2007, 8:51:23 AM (19 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
psErrorCodes_en.dat (modified) (1 diff)
-
sys/psAssert.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/psErrorCodes_en.dat
r11320 r12596 20 20 BAD_FITS file doesn't obey FITS standard 21 21 IEEE a NaN or Inf was detected 22 DB_CLIENT Database error originated in the client library 23 DB_SERVER Database error generated by the server 22 DB_CLIENT Database error originated in the client library 23 DB_SERVER Database error generated by the server 24 PROGRAMMING Known programming error -
trunk/psLib/src/sys/psAssert.h
r12433 r12596 12 12 #include "psError.h" 13 13 #include "psLogMsg.h" 14 15 // these two asserts can be used in the middle of a function to test for programming errors 16 #define PS_ASSERT(VAR, RVAL) \ 17 if (!(VAR)) { \ 18 psError(PS_ERR_PROGRAMMING, false, "Error: %s is not true.", #VAR); \ 19 return(RVAL); \ 20 } 14 21 15 22 // Ensure this is a psLib pointer, by checking for the memblock bounds. … … 35 42 } 36 43 44 #define PS_ASSERT_INT_UNEQUAL(NAME1, NAME2, RVAL) \ 45 if ((NAME1) == (NAME2)) { \ 46 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 47 "Error: %s and %s are equal.", \ 48 #NAME1, #NAME2); \ 49 return(RVAL); \ 50 } 51 37 52 #define PS_ASSERT_INT_EQUAL(NAME1, NAME2, RVAL) \ 38 53 if ((NAME1) != (NAME2)) { \
Note:
See TracChangeset
for help on using the changeset viewer.
