IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 5, 2004, 2:56:29 PM (22 years ago)
Author:
gusciora
Message:

Removed some redundant type checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psConstants.h

    r2291 r2293  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-06 00:44:56 $
     8 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-06 00:56:28 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    318318}
    319319
     320#define PS_IMAGE_CHECK_SIZE_EQUAL(NAME1, NAME2, RVAL) \
     321if ((NAME1->numCols != NAME2->numCols) || \
     322        (NAME1->numRows != NAME2->numRows)) { \
     323    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
     324            "Unallowable operation: psImages %s and %s are not the same size.", \
     325            #NAME1, #NAME2); \
     326    return(RVAL); \
     327}
     328
    320329
    321330
Note: See TracChangeset for help on using the changeset viewer.