IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11673


Ignore:
Timestamp:
Feb 6, 2007, 2:40:04 PM (19 years ago)
Author:
Paul Price
Message:

Adding PS_ASSERT_IMAGE_TYPE_F32_OR_F64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.h

    r11248 r11673  
    88 * @author Ross Harman, MHPCC
    99 *
    10  * @version $Revision: 1.84 $ $Name: not supported by cvs2svn $
    11  * @date $Date: 2007-01-23 22:47:23 $
     10 * @version $Revision: 1.85 $ $Name: not supported by cvs2svn $
     11 * @date $Date: 2007-02-07 00:40:04 $
    1212 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1313 */
     
    271271}
    272272
     273#define PS_ASSERT_IMAGE_TYPE_F32_OR_F64(NAME, RVAL) \
     274if ((NAME)->type.type != PS_TYPE_F32 || (NAME)->type.type != PS_TYPE_F64) { \
     275    psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
     276            "Unallowable operation: psImage %s is not of type F32 or F64.", \
     277            #NAME); \
     278    return(RVAL); \
     279}
     280
    273281#define PS_ASSERT_IMAGES_SIZE_EQUAL(NAME1, NAME2, RVAL) \
    274282if (((NAME1)->numCols != (NAME2)->numCols) || \
Note: See TracChangeset for help on using the changeset viewer.