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/pmReadoutCombine.c

    r2928 r4030  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-01-07 20:00:34 $
     7 *  @version $Revision: 1.22 $ $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
     
    5151                          psF32 readnoise)
    5252{
    53     PS_PTR_CHECK_NULL(inputs, NULL);
    54     PS_PTR_CHECK_NULL(params, NULL);
    55     PS_PTR_CHECK_NULL(params->stats, NULL);
     53    PS_ASSERT_PTR_NON_NULL(inputs, NULL);
     54    PS_ASSERT_PTR_NON_NULL(params, NULL);
     55    PS_ASSERT_PTR_NON_NULL(params->stats, NULL);
    5656    if (zero != NULL) {
    57         PS_VECTOR_CHECK_TYPE(zero, PS_TYPE_F32, NULL);
    58         //        PS_VECTOR_CHECK_TYPE_S16_S32_F32(zero, NULL);
     57        PS_ASSERT_VECTOR_TYPE(zero, PS_TYPE_F32, NULL);
     58        //        PS_ASSERT_VECTOR_TYPE_S16_S32_F32(zero, NULL);
    5959    }
    6060    if (scale != NULL) {
    61         PS_VECTOR_CHECK_TYPE(scale, PS_TYPE_F32, NULL);
    62         //        PS_VECTOR_CHECK_TYPE_S16_S32_F32(scale, NULL);
     61        PS_ASSERT_VECTOR_TYPE(scale, PS_TYPE_F32, NULL);
     62        //        PS_ASSERT_VECTOR_TYPE_S16_S32_F32(scale, NULL);
    6363    }
    6464    if ((zero != NULL) && (scale != NULL)) {
    65         PS_VECTOR_CHECK_TYPE_EQUAL(zero, scale, NULL);
    66         // PS_VECTOR_CHECK_TYPE_S16_S32_F32(scale, NULL);
     65        PS_ASSERT_VECTOR_TYPE_EQUAL(zero, scale, NULL);
     66        // PS_ASSERT_VECTOR_TYPE_S16_S32_F32(scale, NULL);
    6767    }
    6868
     
    102102    while (NULL != tmpInput) {
    103103        tmpReadout = (psReadout *) tmpInput->data;
    104         PS_READOUT_CHECK_NULL(tmpReadout, output);
    105         PS_READOUT_CHECK_EMPTY(tmpReadout, output);
    106         PS_READOUT_CHECK_TYPE(tmpReadout, PS_TYPE_F32, output);
     104        PS_ASSERT_READOUT_NON_NULL(tmpReadout, output);
     105        PS_ASSERT_READOUT_NON_EMPTY(tmpReadout, output);
     106        PS_ASSERT_READOUT_TYPE(tmpReadout, PS_TYPE_F32, output);
    107107        outputType = tmpReadout->image->type.type;
    108108
     
    126126    // We ensure that the zero vector is of the proper size.
    127127    if (zero != NULL) {
    128         PS_VECTOR_CHECK_TYPE(zero, PS_TYPE_F32, NULL);
     128        PS_ASSERT_VECTOR_TYPE(zero, PS_TYPE_F32, NULL);
    129129        if (numInputs > zero->n) {
    130130            psError(PS_ERR_UNKNOWN, true, "zero vector has incorrect size (%d).  Returning NULL.\n", zero->n);
     
    138138    // We ensure that the scale vector is of the proper size.
    139139    if (scale != NULL) {
    140         PS_VECTOR_CHECK_TYPE(scale, PS_TYPE_F32, NULL);
     140        PS_ASSERT_VECTOR_TYPE(scale, PS_TYPE_F32, NULL);
    141141        if (numInputs > scale->n) {
    142142            psError(PS_ERR_UNKNOWN, true, "scale vector has incorrect size (%d).  Returning NULL.\n", scale->n);
     
    160160        *(psS32 *) &(output->row0) = minInputRows;
    161161    } else {
    162         PS_IMAGE_CHECK_TYPE(output, PS_TYPE_F32, NULL);
     162        PS_ASSERT_IMAGE_TYPE(output, PS_TYPE_F32, NULL);
    163163        if (((output->col0 + output->numCols) < maxInputCols) ||
    164164                ((output->row0 + output->numRows) < maxInputRows)) {
Note: See TracChangeset for help on using the changeset viewer.