IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2272


Ignore:
Timestamp:
Nov 3, 2004, 12:58:53 PM (22 years ago)
Author:
gusciora
Message:

...

Location:
trunk/psLib/src
Files:
2 edited

Legend:

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

    r2261 r2272  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-02 01:52:43 $
     8 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-03 22:58:53 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    264264}
    265265
    266 
     266#define PS_READOUT_CHECK_EMPTY(NAME, RVAL) \
     267if (NAME->image->numCols < 1 || NAME->image->numRows < 1) { \
     268    psError(__func__,"Unallowable operation: psReadout %s or its data is NULL.", #NAME); \
     269    return(RVAL); \
     270}
     271
     272#define PS_READOUT_CHECK_TYPE(NAME, TYPE, RVAL) \
     273if (NAME->image->type.type != TYPE) { \
     274    psError(__func__,"Unallowable operation: psImage %s has incorrect type.", #NAME); \
     275    return(RVAL); \
     276}
    267277
    268278/*****************************************************************************
  • trunk/psLib/src/math/psConstants.h

    r2261 r2272  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-02 01:52:43 $
     8 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-03 22:58:53 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    264264}
    265265
    266 
     266#define PS_READOUT_CHECK_EMPTY(NAME, RVAL) \
     267if (NAME->image->numCols < 1 || NAME->image->numRows < 1) { \
     268    psError(__func__,"Unallowable operation: psReadout %s or its data is NULL.", #NAME); \
     269    return(RVAL); \
     270}
     271
     272#define PS_READOUT_CHECK_TYPE(NAME, TYPE, RVAL) \
     273if (NAME->image->type.type != TYPE) { \
     274    psError(__func__,"Unallowable operation: psImage %s has incorrect type.", #NAME); \
     275    return(RVAL); \
     276}
    267277
    268278/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.