IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2004, 3:09:12 PM (22 years ago)
Author:
desonia
Message:

expanded the scope of PS_NO_TRACE to no-op all psTrace functions.

File:
1 edited

Legend:

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

    r1081 r1137  
    99 *  @author George Gusciora, MHPCC
    1010 *
    11  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-06-24 03:12:19 $
     11 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-06-30 01:09:12 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1616#if !defined(PS_TRACE_H)
    1717#define PS_TRACE_H 1
     18
    1819#define UNKNOWN_TRACE_LEVEL -9999         // we don't know this name's level
    1920#define DEFAULT_TRACE_LEVEL 0
     21
     22
     23/** \addtogroup LogTrace
     24 *  \{
     25 */
     26
     27/** Functions **************************************************************/
     28
     29//#define PS_NO_TRACE 1   ///< to turn off all tracing
     30
     31#if defined(PS_NO_TRACE)
     32#define psTrace(facil, level, ...) (void)0 /* do nothing */
     33#define p_psTrace(facil, level, ...)  (void)0 /* do nothing */
     34#define psTraceSetLevel(facil,level) 0
     35#define psTraceGetLevel(facil) 0
     36#define psTraceReset() (void)0 /* do nothing */
     37#define psTraceFree() (void)0 /* do nothing */
     38#define psTracePrintLevels() (void)0 /* do nothing */
     39#define psTraceSetDestination(fp) (void)0 /* do nothing */
     40#else
    2041
    2142/** Basic structure for the component tree.  A component is a string of the
     
    3152}
    3253p_psComponent;
    33 
    34 /** \addtogroup LogTrace
    35  *  \{
    36  */
    37 
    38 /** Functions **************************************************************/
    3954
    4055#ifndef DOXYGEN
     
    7388/* \} */ // End of SystemGroup Functions
    7489
    75 //#define PS_NO_TRACE 1   ///< to turn off all tracing
    76 
    77 #if defined(PS_NO_TRACE)
    78 #  define psTrace(facil, level, ...) /* do nothing */
    79 #else
    80 #  define psTrace(facil, level, ...) \
    81 p_psTrace(facil, level, __VA_ARGS__)
     90#define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__)
    8291#endif
    8392
Note: See TracChangeset for help on using the changeset viewer.