Changeset 14682
- Timestamp:
- Aug 27, 2007, 4:55:51 PM (19 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 2 edited
-
psAssert.h (modified) (1 diff)
-
psString.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psAssert.h
r14676 r14682 23 23 #define PS_ASSERT_PTR(PTR, RVAL) \ 24 24 { \ 25 if (PTR == NULL) return RVAL; \ 26 if (!psMemIsAlloced(PTR)) { \ 25 if (PTR && (!psMemIsAlloced(PTR))) { \ 27 26 psError(PS_ERR_MEMORY_CORRUPTION, false, \ 28 27 "Error: Pointer %p is corrupted or not on the PS memory system.", \ -
trunk/psLib/src/sys/psString.c
r14679 r14682 13 13 * @author David Robbins, MHPCC 14 14 * 15 * @version $Revision: 1.5 5$ $Name: not supported by cvs2svn $16 * @date $Date: 2007-08-2 7 23:24:21 $15 * @version $Revision: 1.56 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-08-28 02:55:51 $ 17 17 * 18 18 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 121 121 { 122 122 PS_ASSERT_PTR_NON_NULL(dest, 0); 123 PS_ASSERT_PTR( dest, 0);123 PS_ASSERT_PTR(*dest, 0); 124 124 PS_ASSERT_STRING_NON_EMPTY(format, 0); 125 125 … … 140 140 { 141 141 PS_ASSERT_PTR_NON_NULL(dest, 0); 142 PS_ASSERT_PTR( dest, 0);142 PS_ASSERT_PTR(*dest, 0); 143 143 PS_ASSERT_STRING_NON_EMPTY(format, 0); 144 144 … … 194 194 { 195 195 PS_ASSERT_PTR_NON_NULL(dest, 0); 196 PS_ASSERT_PTR( dest, 0);196 PS_ASSERT_PTR(*dest, 0); 197 197 PS_ASSERT_STRING_NON_EMPTY(format, 0); 198 198 … … 214 214 { 215 215 PS_ASSERT_PTR_NON_NULL(dest, 0); 216 PS_ASSERT_PTR( dest, 0);216 PS_ASSERT_PTR(*dest, 0); 217 217 PS_ASSERT_STRING_NON_EMPTY(format, 0); 218 218
Note:
See TracChangeset
for help on using the changeset viewer.
