IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11074


Ignore:
Timestamp:
Jan 12, 2007, 11:58:09 AM (19 years ago)
Author:
Paul Price
Message:

Adding additional assertion macro.

File:
1 edited

Legend:

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

    r9730 r11074  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-10-24 22:52:56 $
     13 *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2007-01-12 21:58:09 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    222222}
    223223
     224#define PS_ASSERT_ARRAY_SIZE(ARRAY, SIZE, RVAL) \
     225if ((ARRAY)->n != (SIZE)) { \
     226    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
     227            "psArray %s has size %ld instead of expected size %ld.", \
     228            #ARRAY, (ARRAY)->n, SIZE); \
     229    return RVAL; \
     230}
    224231
    225232/// @}
Note: See TracChangeset for help on using the changeset viewer.