IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11000


Ignore:
Timestamp:
Jan 9, 2007, 12:42:40 PM (19 years ago)
Author:
jhoblitt
Message:

resort PS_ASSERT_PTR now that config.h is consistently included

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jch-memory/psLib/src/sys/psAssert.h

    r10999 r11000  
    1414{ \
    1515    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}
    3425
    3526#define PS_ASSERT_INT_UNEQUAL(NAME1, NAME2, RVAL) \
Note: See TracChangeset for help on using the changeset viewer.