IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2007, 1:52:54 PM (19 years ago)
Author:
jhoblitt
Message:

update psAbort() API:

add noreturn attribute
remove unneeded 'name' params
turn into a macro so file/line/func are automatiically passed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.c

    r11155 r11686  
    1313 * use ->min and ->max (PS_STAT_USE_RANGE)
    1414 *
    15  *  @version $Revision: 1.199 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2007-01-19 04:32:27 $
     15 *  @version $Revision: 1.200 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2007-02-07 23:52:54 $
    1717 *
    1818 *  Copyright 2006 IfA, University of Hawaii
     
    18701870    if (stats->options & (PS_STAT_FITTED_MEAN_V2 | PS_STAT_FITTED_STDEV_V2)) {
    18711871        if (stats->options & (PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV)) {
    1872             psAbort ("stats", "you may not specify both FITTED_MEAN and FITTED_MEAN_V2");
     1872            psAbort("you may not specify both FITTED_MEAN and FITTED_MEAN_V2");
    18731873        }
    18741874        if (!vectorFittedStats_v2(inF32, errorsF32, maskU8, maskVal, stats)) {
     
    18811881    if (stats->options & (PS_STAT_FITTED_MEAN_V3 | PS_STAT_FITTED_STDEV_V3)) {
    18821882        if (stats->options & (PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV)) {
    1883             psAbort ("stats", "you may not specify both FITTED_MEAN and FITTED_MEAN_V3");
     1883            psAbort("you may not specify both FITTED_MEAN and FITTED_MEAN_V3");
    18841884        }
    18851885        if (!vectorFittedStats_v3(inF32, errorsF32, maskU8, maskVal, stats)) {
     
    20242024        return 0;
    20252025    }
    2026     psAbort(__func__, "Should never get here.\n");
     2026    psAbort("Should never get here.\n");
    20272027    return 0;
    20282028}
     
    20702070        return NAN;
    20712071    }
    2072     psAbort(__func__, "Should never get here.\n");
     2072    psAbort("Should never get here.\n");
    20732073    return NAN;
    20742074}
Note: See TracChangeset for help on using the changeset viewer.