IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 5, 2004, 2:44:56 PM (22 years ago)
Author:
gusciora
Message:

Removed redundant type checking.

File:
1 edited

Legend:

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

    r2274 r2291  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.35 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-11-04 01:59:04 $
     8 *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-06 00:44:56 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4141    psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
    4242            "Error: %s is 0 or less.", #NAME); \
     43    return(RVAL); \
     44}
     45
     46#define PS_INT_CHECK_ZERO(NAME, RVAL) \
     47if (NAME < 1) { \
     48    psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
     49            "Error: %s is 0.", #NAME); \
    4350    return(RVAL); \
    4451}
Note: See TracChangeset for help on using the changeset viewer.