IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15419


Ignore:
Timestamp:
Oct 29, 2007, 3:31:28 PM (19 years ago)
Author:
Paul Price
Message:

Adding PS_ASSERT_PTR_NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psAssert.h

    r15047 r15419  
    224224}
    225225
     226#define PS_ASSERT_PTR_NULL(NAME, RVAL) \
     227if ((NAME) != NULL) { \
     228    psError(PS_ERR_BAD_PARAMETER_NULL, true, \
     229            "Unallowable operation: %s is not NULL.", \
     230            #NAME); \
     231    return RVAL; \
     232}
     233
    226234#define PS_ASSERT_PTR_TYPE(NAME, TYPE, RVAL) \
    227235if ((NAME)->type.type != TYPE) { \
Note: See TracChangeset for help on using the changeset viewer.