IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2004, 4:02:10 PM (22 years ago)
Author:
desonia
Message:

fixed problems with psError and associate parameter checking macros.

File:
1 edited

Legend:

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

    r2270 r2275  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2004-11-03 22:10:37 $
     7 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2004-11-04 02:02:10 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1515#include<math.h>
    1616#include "pslib.h"
    17 // XXX: have Desonia do this correctly.
    18 #include "../../psLib/src/dataManip/psConstants.h"
     17#include "psConstants.h"
    1918
    2019typedef struct
     
    9089        // XXX
    9190        if (numInputCols != tmpReadout->image->numCols) {
    92             psError(__func__, "Image %d not same size as other input images (%d, %d)\n",
     91            psError(PS_ERR_UNKNOWN,true, "Image %d not same size as other input images (%d, %d)\n",
    9392                    tmpReadout->image->numRows, tmpReadout->image->numCols);
    9493            return(NULL);
     
    9695        // XXX
    9796        if (numInputRows != tmpReadout->image->numRows) {
    98             psError(__func__, "Image %d not same size as other input images (%d, %d)\n",
     97            psError(PS_ERR_UNKNOWN,true, "Image %d not same size as other input images (%d, %d)\n",
    9998                    tmpReadout->image->numRows, tmpReadout->image->numCols);
    10099            return(NULL);
     
    111110
    112111    if (1 < p_psDetermineNumBits(params->stats->options)) {
    113         psError(__func__, "Multiple statistical options have been requested.\n");
     112        psError(PS_ERR_UNKNOWN,true, "Multiple statistical options have been requested.\n");
    114113        return(NULL);
    115114    }
     
    175174            double statValue;
    176175            if (!p_psGetStatValue(stats, &statValue)) {
    177                 psError(__func__, "Could not determine stats value.\n");
     176                psError(PS_ERR_UNKNOWN,true, "Could not determine stats value.\n");
    178177                return(NULL);
    179178            } else {
Note: See TracChangeset for help on using the changeset viewer.