IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2304


Ignore:
Timestamp:
Nov 8, 2004, 2:41:35 PM (22 years ago)
Author:
harman
Message:

Added integer == comparison error

Location:
trunk/psLib/src
Files:
2 edited

Legend:

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

    r2293 r2304  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-06 00:56:28 $
     8 *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-09 00:41:35 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3030 
    3131*****************************************************************************/
     32
     33#define PS_INT_CHECK_EQUALS(NAME1, NAME2, RVAL) \
     34if (NAME1 == NAME2) { \
     35    psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
     36            "Error: %s and %s are equal.", \
     37            #NAME1, #NAME2); \
     38    return(RVAL); \
     39}
     40
    3241#define PS_INT_CHECK_NON_NEGATIVE(NAME, RVAL) \
    3342if (NAME < 0) { \
     
    355364
    356365/*****************************************************************************
    357     Misc. macros: 
     366    Misc. macros:
    358367 *****************************************************************************/
    359368#define PS_MAX(A, B) \
  • trunk/psLib/src/math/psConstants.h

    r2293 r2304  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-06 00:56:28 $
     8 *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-09 00:41:35 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3030 
    3131*****************************************************************************/
     32
     33#define PS_INT_CHECK_EQUALS(NAME1, NAME2, RVAL) \
     34if (NAME1 == NAME2) { \
     35    psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
     36            "Error: %s and %s are equal.", \
     37            #NAME1, #NAME2); \
     38    return(RVAL); \
     39}
     40
    3241#define PS_INT_CHECK_NON_NEGATIVE(NAME, RVAL) \
    3342if (NAME < 0) { \
     
    355364
    356365/*****************************************************************************
    357     Misc. macros: 
     366    Misc. macros:
    358367 *****************************************************************************/
    359368#define PS_MAX(A, B) \
Note: See TracChangeset for help on using the changeset viewer.