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/sys/psError.c

    r11674 r11686  
    1111 *  @author Eric Van Alst, MHPCC
    1212 *
    13  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2007-02-07 01:15:49 $
     13 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2007-02-07 23:52:54 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6565        psArrayAdd(errorStack, 0, err);
    6666    } else {
    67         psAbort(__func__, "attempt to exceed maximum error stack depth of %ld",
     67        psAbort("attempt to exceed maximum error stack depth of %ld",
    6868                (long)MAX_ERROR_STACK_SIZE);
    6969    }
     
    7878        // thread exits
    7979        if (pthread_key_create(&errorStack_key, psFreeWrapper)) {
    80             psAbort(__func__, "pthread_key_create() failed");
     80            psAbort("pthread_key_create failed()");
    8181        }
    8282        errorStackKeyInitialized = true;
     
    9595        // param
    9696        if (pthread_setspecific(errorStack_key, errorStack)) {
    97             psAbort(__func__, "pthread_setspecific() failed");
     97            psAbort("pthread_setspecific() failed");
    9898        }
    9999    }
Note: See TracChangeset for help on using the changeset viewer.