IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

consistently include config.h

File:
1 edited

Legend:

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

    r10940 r10999  
    1414{ \
    1515    if (NAME == NULL) return(RVAL); \
    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 }
     16}
     17
     18#if 0
     19
     20psMemBlock *mb = (psMemBlock*)(NAME) - 1;
     21\
     22if (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
    2534
    2635#define PS_ASSERT_INT_UNEQUAL(NAME1, NAME2, RVAL) \
Note: See TracChangeset for help on using the changeset viewer.