IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2274


Ignore:
Timestamp:
Nov 3, 2004, 3:59:04 PM (22 years ago)
Author:
desonia
Message:

fixed psError calls for psModule project macros.

Location:
trunk/psLib/src
Files:
2 edited

Legend:

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

    r2273 r2274  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-04 01:04:57 $
     8 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-04 01:59:04 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    326326#define PS_READOUT_CHECK_EMPTY(NAME, RVAL) \
    327327if (NAME->image->numCols < 1 || NAME->image->numRows < 1) { \
    328     psError(__func__,"Unallowable operation: psReadout %s or its data is NULL.", #NAME); \
     328    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
     329            "Unallowable operation: psReadout %s or its data is NULL.", #NAME); \
    329330    return(RVAL); \
    330331}
     
    332333#define PS_READOUT_CHECK_TYPE(NAME, TYPE, RVAL) \
    333334if (NAME->image->type.type != TYPE) { \
    334     psError(__func__,"Unallowable operation: psImage %s has incorrect type.", #NAME); \
     335    psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
     336            "Unallowable operation: psImage %s has incorrect type.", #NAME); \
    335337    return(RVAL); \
    336338}
  • trunk/psLib/src/math/psConstants.h

    r2273 r2274  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-04 01:04:57 $
     8 *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-04 01:59:04 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    326326#define PS_READOUT_CHECK_EMPTY(NAME, RVAL) \
    327327if (NAME->image->numCols < 1 || NAME->image->numRows < 1) { \
    328     psError(__func__,"Unallowable operation: psReadout %s or its data is NULL.", #NAME); \
     328    psError(PS_ERR_BAD_PARAMETER_SIZE, true, \
     329            "Unallowable operation: psReadout %s or its data is NULL.", #NAME); \
    329330    return(RVAL); \
    330331}
     
    332333#define PS_READOUT_CHECK_TYPE(NAME, TYPE, RVAL) \
    333334if (NAME->image->type.type != TYPE) { \
    334     psError(__func__,"Unallowable operation: psImage %s has incorrect type.", #NAME); \
     335    psError(PS_ERR_BAD_PARAMETER_TYPE, true, \
     336            "Unallowable operation: psImage %s has incorrect type.", #NAME); \
    335337    return(RVAL); \
    336338}
Note: See TracChangeset for help on using the changeset viewer.