Changeset 1081 for trunk/psLib/src/sysUtils/psMemory.c
- Timestamp:
- Jun 23, 2004, 5:12:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psMemory.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psMemory.c
r1073 r1081 8 8 * @author Robert Lupton, Princeton University 9 9 * 10 * @version $Revision: 1.2 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-06-2 3 23:00:15$10 * @version $Revision: 1.26 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-06-24 03:12:19 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 182 182 * N.b. If the block wasn't allocated by psAlloc, it will appear corrupted 183 183 */ 184 #define ALIGNED(P) ((void *)((long)(P) & ~03) == (P))185 184 186 185 static int checkMemBlock(const psMemBlock *m, const char* funcName) … … 191 190 if (m == NULL) { 192 191 psError(funcName,"Memory Corruption: NULL memory block found."); 193 return(1);194 }195 196 if (!ALIGNED(m)) {197 psError(funcName, "psMemCheckCorruption: non-aligned memory block");198 192 return(1); 199 193 }
Note:
See TracChangeset
for help on using the changeset viewer.
