IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 25, 2005, 10:28:32 AM (21 years ago)
Author:
gusciora
Message:

I renamed many of the PS_CHECK macros to PS_ASSERT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmNonLinear.c

    r2928 r4030  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-01-07 20:00:34 $
     7 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2005-05-25 20:28:32 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3333                                    const psPolynomial1D *input1DPoly)
    3434{
    35     PS_PTR_CHECK_NULL(inputReadout, NULL);
    36     PS_PTR_CHECK_NULL(inputReadout->image, NULL);
    37     PS_IMAGE_CHECK_TYPE(inputReadout->image, PS_TYPE_F32, NULL);
    38     PS_PTR_CHECK_NULL(input1DPoly, NULL);
     35    PS_ASSERT_PTR_NON_NULL(inputReadout, NULL);
     36    PS_ASSERT_PTR_NON_NULL(inputReadout->image, NULL);
     37    PS_ASSERT_IMAGE_TYPE(inputReadout->image, PS_TYPE_F32, NULL);
     38    PS_ASSERT_PTR_NON_NULL(input1DPoly, NULL);
    3939
    4040    psS32 i;
     
    6161                                const psVector *outFlux)
    6262{
    63     PS_PTR_CHECK_NULL(inputReadout,NULL);
    64     PS_PTR_CHECK_NULL(inputReadout->image,NULL);
    65     PS_IMAGE_CHECK_TYPE(inputReadout->image, PS_TYPE_F32, NULL);
    66     PS_PTR_CHECK_NULL(inFlux,NULL);
     63    PS_ASSERT_PTR_NON_NULL(inputReadout,NULL);
     64    PS_ASSERT_PTR_NON_NULL(inputReadout->image,NULL);
     65    PS_ASSERT_IMAGE_TYPE(inputReadout->image, PS_TYPE_F32, NULL);
     66    PS_ASSERT_PTR_NON_NULL(inFlux,NULL);
    6767    if (inFlux->n < 2) {
    6868        psError(PS_ERR_UNKNOWN,true, "pmNonLinearityLookup(): input vector less than 2 elements.  Returning inputReadout image.");
    6969        return(inputReadout);
    7070    }
    71     PS_PTR_CHECK_NULL(outFlux,NULL);
     71    PS_ASSERT_PTR_NON_NULL(outFlux,NULL);
    7272    psS32 tableSize = inFlux->n;
    7373    if (inFlux->n != outFlux->n) {
     
    7676                 "WARNING: pmNonLinear.c: pmNonLinearityLookup(): input vectors have different sizes (%d, %d)\n", inFlux->n, outFlux->n);
    7777    }
    78     PS_VECTOR_CHECK_TYPE(inFlux, PS_TYPE_F32, NULL);
    79     PS_VECTOR_CHECK_TYPE(outFlux, PS_TYPE_F32, NULL);
     78    PS_ASSERT_VECTOR_TYPE(inFlux, PS_TYPE_F32, NULL);
     79    PS_ASSERT_VECTOR_TYPE(outFlux, PS_TYPE_F32, NULL);
    8080
    8181    psS32 i;
Note: See TracChangeset for help on using the changeset viewer.