IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 12, 2008, 12:53:34 PM (18 years ago)
Author:
eugene
Message:

adding p_psErrorV and equivalent macro

File:
1 edited

Legend:

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

    r14452 r19034  
    1212 *  @author Joshua Hoblitt, University of Hawaii
    1313 *
    14  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2007-08-09 01:40:07 $
     14 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2008-08-12 22:53:34 $
    1616 *
    1717 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    138138    ...                                ///< any parameters required in format
    139139);
     140psErrorCode psErrorV(
     141    psErrorCode code,                  ///< Error class code
     142    bool new,                          ///< true if error originates at this location
     143    const char* format,                ///< printf-style format of header line
     144    va_list ap                         ///< any parameters required in format
     145);
    140146#else // ifdef DOXYGEN
    141147psErrorCode p_psError(
     
    148154    ...                                ///< any parameters required in format
    149155) PS_ATTR_FORMAT(printf, 6, 7);
     156psErrorCode p_psErrorV(
     157    const char* filename,              ///< file name
     158    unsigned int lineno,               ///< line number in file
     159    const char* func,                  ///< function name
     160    psErrorCode code,                  ///< Error class code
     161    bool new,                          ///< true if error originates at this location
     162    const char* format,                ///< printf-style format of header line
     163    va_list ap                         ///< any parameters required in format
     164  );
    150165#ifndef SWIG
    151 #define psError(code,new,...) \
    152       p_psError(__FILE__,__LINE__,__func__,code,new,__VA_ARGS__)
     166#define psError(code,new,...) p_psError(__FILE__,__LINE__,__func__,code,new,__VA_ARGS__)
     167#define psErrorV(code,new,format,ap) p_psErrorV(__FILE__,__LINE__,__func__,code,new,format,ap)
    153168#endif // ifndef SWIG
    154169#endif // ifdef DOXYGEN
Note: See TracChangeset for help on using the changeset viewer.