IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2004, 3:05:00 PM (22 years ago)
Author:
desonia
Message:

changed the psError signature to match SDRS. Also made misc. cleanups as
I was combing the files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sysUtils/psError.h

    r2204 r2273  
    1212 *  @author Eric Van Alst, MHPCC
    1313 *
    14  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-10-27 00:57:31 $
     14 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-11-04 01:05:00 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    104104 *  log message.
    105105 *
     106 *  This function modifies the error stack.
     107 *
     108 *  @return psErrorCode    the given error code
    106109 */
    107 void psError(
    108     const char *name,                  ///< Source of error such as file or function detected
    109     const char *fmt,                   ///< A printf style formatting statement defining msg
     110psErrorCode p_psError(
     111    const char* file,
     112    int lineno,
     113    const char* func,
     114    psErrorCode code,                  ///< Error class code
     115    psBool new,                        ///< true if error originates at this location
     116    const char* fmt,
    110117    ...
    111118);
    112119
    113 /** Reports an error message to the logging facility
    114  *
    115  *  This function will invoke the psLogMsg function with a level of
    116  *  PS_LOG_ERROR and pass the parameters name and fmt to generate a proper
    117  *  log message.
    118  *
    119  */
    120 psErrorCode psErrorMsg(
    121     const char *name,                  ///< Name of error in the form aaa.bbb.ccc
    122     psErrorCode code,                  ///< Error class code
    123     psBool new,                          ///< true if error originates at this location
    124     const char* fmt,                   ///< printf style formatting statement defining error message
    125     ...
    126 );
     120#define psError(code,new,...) p_psError(__FILE__,__LINE__,__func__,code,new,__VA_ARGS__)
    127121
    128122/** Create a new psErr struct
Note: See TracChangeset for help on using the changeset viewer.