Changeset 14982 for trunk/psLib/src/sys/psAssert.h
- Timestamp:
- Sep 21, 2007, 5:01:08 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psAssert.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psAssert.h
r14682 r14982 9 9 #include <math.h> 10 10 11 #include "psMemory.h"12 11 #include "psError.h" 13 12 #include "psLogMsg.h" … … 18 17 psError(PS_ERR_PROGRAMMING, false, "Error: %s is not true.", #VAR); \ 19 18 return(RVAL); \ 20 }21 22 // Ensure this is a psLib pointer23 #define PS_ASSERT_PTR(PTR, RVAL) \24 { \25 if (PTR && (!psMemIsAlloced(PTR))) { \26 psError(PS_ERR_MEMORY_CORRUPTION, false, \27 "Error: Pointer %p is corrupted or not on the PS memory system.", \28 PTR); \29 return RVAL; \30 } \31 19 } 32 20
Note:
See TracChangeset
for help on using the changeset viewer.
