IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 1:40:55 PM (22 years ago)
Author:
desonia
Message:

fixed indent-madness concerning preprocessor directives.

File:
1 edited

Legend:

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

    r1440 r1441  
    1010 *  @author George Gusciora, MHPCC
    1111 *
    12  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-08-09 23:34:58 $
     12 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-08-09 23:40:55 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    1616 */
    1717#if !defined(PS_TRACE_H)
    18 #    define PS_TRACE_H 1
     18#define PS_TRACE_H 1
    1919
    20 #    define PS_UNKNOWN_TRACE_LEVEL -9999   // we don't know this name's level
    21 #    define PS_DEFAULT_TRACE_LEVEL 0
     20#define PS_UNKNOWN_TRACE_LEVEL -9999   // we don't know this name's level
     21#define PS_DEFAULT_TRACE_LEVEL 0
    2222
    2323/** \addtogroup LogTrace
     
    2929//#define PS_NO_TRACE 1   ///< to turn off all tracing
    3030
    31 #    if defined(PS_NO_TRACE)
    32     #        define psTrace(facil, level, ...) (void)0
    33     /* do nothing */
    34     #        define p_psTrace(facil, level, ...)  (void)0
    35     /* do nothing */
    36     #        define psTraceSetLevel(facil,level) 0
    37     #        define psTraceGetLevel(facil) 0
    38     #        define psTraceReset() (void)0     /* do nothing */
    39     #        define psTraceFree() (void)0      /* do nothing */
    40     #        define psTracePrintLevels() (void)0
    41     /* do nothing */
    42     #        define psTraceSetDestination(fp) (void)0
    43     /* do nothing */
    44     #    else
     31#if defined(PS_NO_TRACE)
     32#        define psTrace(facil, level, ...) (void)0
     33/* do nothing */
     34#        define p_psTrace(facil, level, ...)  (void)0
     35/* do nothing */
     36#        define psTraceSetLevel(facil,level) 0
     37#        define psTraceGetLevel(facil) 0
     38#        define psTraceReset() (void)0     /* do nothing */
     39#        define psTraceFree() (void)0      /* do nothing */
     40#        define psTracePrintLevels() (void)0
     41/* do nothing */
     42#        define psTraceSetDestination(fp) (void)0
     43/* do nothing */
     44#    else
    4545
    46         /** Basic structure for the component tree.  A component is a string of the
    47             form aaa.bbb.ccc, and may itself contain further subcomponents.  The
    48             Component structure doesn't in fact contain it's full name, but only the
    49             last part. */
    50         typedef struct p_psComponent
    51         {
    52             const char *name;           // last part of name of component
    53             int level;                  // trace level for this component
    54             int n;                      // number of subcomponents
    55             struct p_psComponent* *subcomp;     // next level of subcomponents
    56         }
     46    /** Basic structure for the component tree.  A component is a string of the
     47        form aaa.bbb.ccc, and may itself contain further subcomponents.  The
     48        Component structure doesn't in fact contain it's full name, but only the
     49        last part. */
     50    typedef struct p_psComponent
     51    {
     52        const char *name;           // last part of name of component
     53        int level;                  // trace level for this component
     54        int n;                      // number of subcomponents
     55        struct p_psComponent* *subcomp;     // next level of subcomponents
     56    }
    5757p_psComponent;
    5858
    59 #        ifndef DOXYGEN
     59#ifndef DOXYGEN
    6060/// Send a trace message
    6161void p_psTrace(const char *facil,       ///< facilty of interest
     
    6363               ...)             ///< trace message arguments
    6464;
    65 #        endif
     65#endif
    6666
    6767/// Set trace level
     
    8888/* \} */// End of SystemGroup Functions
    8989
    90 #        define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__)
    91 #    endif
     90#define psTrace(facil, level, ...) p_psTrace(facil, level, __VA_ARGS__)
     91#endif
    9292
    9393#endif
Note: See TracChangeset for help on using the changeset viewer.