IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2006, 1:02:59 PM (20 years ago)
Author:
Paul Price
Message:

Removing psReadout assertions.

File:
1 edited

Legend:

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

    r6484 r7277  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.86 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-02-24 23:43:15 $
     8 *  @version $Revision: 1.87 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-06-01 23:02:59 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    704704
    705705/*****************************************************************************
    706     PS_READOUT macros:
     706    Misc. macros:
    707707*****************************************************************************/
    708 #define PS_ASSERT_READOUT_NON_NULL(NAME, RVAL) \
    709 if ((NAME) == NULL || (NAME)->image == NULL) { \
    710     psError(PS_ERR_BAD_PARAMETER_NULL, true, \
    711             "Unallowable operation: psReadout %s or its data is NULL.", \
    712             #NAME); \
    713     return(RVAL); \
    714 }
    715 
    716 #define PS_ASSERT_READOUT_NON_EMPTY(NAME, RVAL) \
    717 if ((NAME)->image->numCols < 1 || (NAME)->image->numRows < 1) { \
    718     psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
    719             "Unallowable operation: psReadout %s or its data is NULL.", #NAME); \
    720     return(RVAL); \
    721 }
    722 
    723 #define PS_ASSERT_READOUT_TYPE(NAME, TYPE, RVAL) \
    724 if ((NAME)->image->type.type != TYPE) { \
    725     psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
    726             "Unallowable operation: psImage %s has incorrect type.", #NAME); \
    727     return(RVAL); \
    728 }
    729 
    730 /*****************************************************************************
    731     Misc. macros:
    732  *****************************************************************************/
    733708#define PS_MAX(A, B) \
    734709(((A) > (B)) ? (A) : (B))
Note: See TracChangeset for help on using the changeset viewer.