Changeset 11000
- Timestamp:
- Jan 9, 2007, 12:42:40 PM (19 years ago)
- File:
-
- 1 edited
-
branches/jch-memory/psLib/src/sys/psAssert.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/jch-memory/psLib/src/sys/psAssert.h
r10999 r11000 14 14 { \ 15 15 if (NAME == NULL) return(RVAL); \ 16 } 17 18 #if 0 19 20 psMemBlock *mb = (psMemBlock*)(NAME) - 1; 21 \ 22 if (mb->startblock != P_PS_MEMMAGIC || mb->endblock != P_PS_MEMMAGIC || \ 23 *(psU32 *)((char *)(mb + 1) + mb->userMemorySize) != P_PS_MEMMAGIC) 24 { 25 \ 26 psError(PS_ERR_MEMORY_CORRUPTION, false, \ 27 "Error: Pointer %s is corrupted or not on the PS memory system.", \ 28 #NAME); \ 29 return (RVAL); \ 30 } \ 31 } 32 33 #endif 16 psMemBlock *mb = (psMemBlock*)(NAME) - 1; \ 17 if (mb->startblock != P_PS_MEMMAGIC || mb->endblock != P_PS_MEMMAGIC || \ 18 *(psU32 *)((char *)(mb + 1) + mb->userMemorySize) != P_PS_MEMMAGIC) { \ 19 psError(PS_ERR_MEMORY_CORRUPTION, false, \ 20 "Error: Pointer %s is corrupted or not on the PS memory system.", \ 21 #NAME); \ 22 return (RVAL); \ 23 } \ 24 } 34 25 35 26 #define PS_ASSERT_INT_UNEQUAL(NAME1, NAME2, RVAL) \
Note:
See TracChangeset
for help on using the changeset viewer.
