IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

created psFitsDumpErors to dump all CFITSIO errors in the stack; also added this concept to psFitsErrors; replaced fits_get_errstatus with psFitsDumpErrors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/fits/psFits.h

    r16185 r19035  
    44 * @author Robert DeSonia, MHPCC
    55 *
    6  * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2008-01-23 03:08:03 $
     6 * @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2008-08-12 22:54:53 $
    88 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    99 */
     
    130130#endif // ifdef DOXYGEN
    131131
     132/// dump the full CFITSIO error stack
     133#ifdef DOXYGEN
     134bool psFitsDumpErrors(
     135    psErrorCode code,                   ///< psLib code to use
     136    const char *message,                ///< printf-style format of header line
     137    ...                                 ///< any parameters required in format
     138    );
     139#else // ifdef DOXYGEN
     140bool p_psFitsDumpErrors(
     141    const char* filename,               ///< file name
     142    unsigned int lineno,                ///< line number in file
     143    const char* func,                   ///< function name
     144    psErrorCode code,                   ///< psLib code to use
     145    const char *message,                ///< printf-style format of header line
     146    ...                                 ///< any parameters required in format
     147    ) PS_ATTR_FORMAT(printf, 5, 6);
     148#ifndef SWIG
     149#define psFitsDumpErrors(CODE,...) \
     150        p_psFitsDumpErrors(__FILE__,__LINE__,__func__,CODE,__VA_ARGS__)
     151#endif // ifndef SWIG
     152#endif // ifdef DOXYGEN
    132153
    133154/** Creates a new FITS options struct
Note: See TracChangeset for help on using the changeset viewer.