IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2006, 4:20:43 PM (20 years ago)
Author:
Paul Price
Message:

Moved PS_ASSERT functions into appropriate places. Created psAssert.h for general PS_ASSERT functions. Vector-specific assertions went to psVector.h; image-specific assertions went to psImage.h, etc. psConstants.h remains, but only contains specific math constants and functions, as the name implies.

File:
1 edited

Legend:

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

    r6305 r7766  
    1212 *  @author GLG, MHPCC
    1313 *
    14  *  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2006-02-02 21:09:08 $
     14 *  @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2006-06-30 02:20:06 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2929#include "psScalar.h"
    3030#include "psPolynomial.h"
     31
     32#define PS_LEFT_SPLINE_DERIV 0.0
     33#define PS_RIGHT_SPLINE_DERIV 0.0
    3134
    3235/** \addtogroup GROUP00
     
    9295);
    9396
     97/*****************************************************************************
     98    PS_SPLINE macros:
     99*****************************************************************************/
     100#define PS_ASSERT_SPLINE(NAME, RVAL) \
     101if (false == psMemCheckSpline1D(NAME)) { \
     102    psError(PS_ERR_BAD_PARAMETER_NULL, true, \
     103            "Unallowable operation: argument %s is not a psSpline1D struct.\n",\
     104            #NAME); \
     105    return(RVAL); \
     106} \
     107
     108#define PS_ASSERT_SPLINE_NON_NULL(NAME, RVAL) \
     109if ((NAME) == NULL) { \
     110    psError(PS_ERR_BAD_PARAMETER_NULL, true, \
     111            "Unallowable operation: psSpline1D %s is NULL.", \
     112            #NAME); \
     113    return(RVAL); \
     114} \
     115
     116
    94117/** \} */ // End of MathGroup Functions
    95118
Note: See TracChangeset for help on using the changeset viewer.