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

    r2148 r2275  
    66 *  @author George Gusciora, MHPCC
    77 *
    8  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-10-15 02:20:39 $
     8 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-11-04 02:02:10 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3838
    3939    if (((in->image)->numRows + in->row0 - bias->row0) > (bias->image)->numRows) {
    40         psError(__func__, "bias image does not have enough rows\n");
     40        psError(PS_ERR_UNKNOWN,true, "bias image does not have enough rows\n");
    4141    }
    4242    if (((in->image)->numCols + in->row0 - bias->row0) > (bias->image)->numCols) {
    43         psError(__func__, "bias image does not have enough columns\n");
     43        psError(PS_ERR_UNKNOWN,true, "bias image does not have enough columns\n");
    4444    }
    4545
     
    130130
    131131    if (numOptions == 0) {
    132         psError(__func__, "No statistics options have been specified\n");
     132        psError(PS_ERR_UNKNOWN,true, "No statistics options have been specified\n");
    133133    }
    134134    if (numOptions != 1) {
     
    189189        }
    190190    } else {
    191         psError(__func__, "unknown fit type\n");
     191        psError(PS_ERR_UNKNOWN,true, "unknown fit type\n");
    192192    }
    193193
     
    219219    int nBin;
    220220
    221     PS_CHECK_NULL_PTR_RETURN_NULL(in);
     221    PS_PTR_CHECK_NULL(in,NULL);
    222222
    223223    //
     
    229229
    230230    if ((overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE)) {
    231         psError(__func__, "(overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE)\n");
     231        psError(PS_ERR_UNKNOWN,true, "(overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE)\n");
    232232        return(in);
    233233    }
Note: See TracChangeset for help on using the changeset viewer.