IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 23, 2006, 12:25:31 PM (20 years ago)
Author:
gusciora
Message:

Misc code cleaning

File:
1 edited

Legend:

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

    r5588 r6186  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2005-11-23 23:54:43 $
     8 *  @version $Revision: 1.82 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-01-23 22:25:31 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1414 *       called with complex expressions.
    1515 *
    16  *  XXX: All functions which use the PS_CHECK macros must be scrutinized so
     16 *  XXX: All functions which use the PS_ASSERT macros must be scrutinized so
    1717 *  that we ensure that an argument which is expected to be output is
    1818 *  psFree'ed before reurning NULL.
     
    2121 *  throw a psError if the CONDITION is true.  However, some throw the error
    2222 *  if the CONDITION is false.  This should be consistant.
    23  *
    24  *  XXX: rename all these with form PS_ASSERT_CONDITION().
    2523 *
    2624 */
     
    156154}
    157155
    158 // Produce an error if (NAME1 > NAME2)
    159 // XXX: Get rid of this, use above macros.
    160 #define PS_INT_COMPARE(NAME1, NAME2, RVAL) \
    161 if ((NAME1) > (NAME2)) { \
    162     psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
    163             "Error: (%s > %s) (%d %d).", \
    164             #NAME1, #NAME2, NAME1, NAME2); \
    165     return(RVAL); \
    166 }
    167 
    168 // Produce an error if ((NAME1 > NAME2)
    169 // XXX: Get rid of this, use above macros.
    170 #define PS_FLOAT_COMPARE(NAME1, NAME2, RVAL) \
    171 if ((NAME1) > (NAME2)) { \
    172     psError(PS_ERR_BAD_PARAMETER_VALUE, true, \
    173             "Error: (%s > %s) (%f %f)", \
    174             #NAME1, #NAME2, NAME1, NAME2); \
    175     return(RVAL); \
    176 }
    177 
    178156#define PS_ASSERT_FLOAT_NON_EQUAL(NAME1, NAME2, RVAL) \
    179157if (fabs((NAME2) - (NAME1)) < FLT_EPSILON) { \
Note: See TracChangeset for help on using the changeset viewer.