IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9578 for trunk/psLib/src/types


Ignore:
Timestamp:
Oct 13, 2006, 5:50:28 PM (20 years ago)
Author:
Paul Price
Message:

Adding assertions for metadata and string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psMetadata.h

    r9549 r9578  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.90 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2006-10-13 22:42:28 $
     13*  @version $Revision: 1.91 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2006-10-14 03:50:28 $
    1515*
    1616*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    11891189
    11901190
     1191/// Assert on metadata with extant hash and list components
     1192#define PS_ASSERT_METADATA_NON_NULL(NAME, RVAL) \
     1193if (!(NAME) || !(NAME)->hash || !(NAME)->list) { \
     1194    psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
     1195            "Error: Metadata %s or one of its components is NULL.", \
     1196            #NAME); \
     1197    return(RVAL); \
     1198}
     1199
     1200
    11911201/// @}
    11921202
Note: See TracChangeset for help on using the changeset viewer.