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

    r10999 r11686  
    99 *
    1010 *  @author Eric Van Alst, MHPCC
     11 *  @author Joshua Hoblitt, University of Hawaii
    1112 *   
    12  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2007-01-09 22:38:53 $
     13 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2007-02-07 23:52:54 $
    1415 *
    1516 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2223#include <stdarg.h>
    2324#include <stdlib.h>
     25
    2426#include "psAbort.h"
    2527#include "psError.h"
    2628#include "psLogMsg.h"
    2729
    28 void psAbort(const char *name, const char *format, ...)
     30void p_psAbort(const char *file,
     31               unsigned int lineno,
     32               const char *func,
     33               const char *format,
     34               ...)
    2935{
    3036    psErrorStackPrint(stderr, "Aborting. Error stack:");
     
    3541
    3642    // Call logging function with PS_LOG_ABORT level
    37     psLogMsgV(name, PS_LOG_ABORT, format, argPtr);
     43    psLogMsgV("psLib.sys", PS_LOG_ABORT, format, argPtr);
    3844
    3945    // Clean up stack after variable arguement has been used
Note: See TracChangeset for help on using the changeset viewer.