IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12494


Ignore:
Timestamp:
Mar 19, 2007, 12:26:22 PM (19 years ago)
Author:
jhoblitt
Message:

improve PS_NO_TRACE replacement macro behavior

File:
1 edited

Legend:

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

    r12493 r12494  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2007-03-19 21:55:01 $
     11 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2007-03-19 22:26:22 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4040// XXX EAM : the old 'empty' values of (void) 0 are dangerous
    4141# if defined(PS_NO_TRACE)
    42 #   define psTraceSetFormat(format)     /* do nothing */
    43 #   define psTrace(facil, level, ...)   /* do nothing */
    44 #   define psTraceGetLevel(facil)       /* do nothing */
     42#   define psTraceSetFormat(format)     true    /* success */
     43#   define psTrace(facil, level, ...)           /* do nothing */
     44#   define psTraceGetLevel(facil)       0       /* trace level is always 0 */
    4545#   define psTraceV(facil, level, format, __VA_LIST)    /* do nothing */
    46 #   define psTraceSetLevel(facil,level) /* do nothing */
    47 #   define psTraceReset()               /* do nothing */
    48 #   define psTracePrintLevels()         /* do nothing */
    49 #   define psTraceSetDestination(fp)    /* do nothing */
    50 #   define psTraceGetDestination()      2 /* destination is stderr */
    51 #   define psTraceLevels()              /* do nothing */
     46#   define psTraceSetLevel(facil,level) 0       /* previous level was 0 */
     47#   define psTraceReset()                       /* do nothing */
     48#   define psTracePrintLevels()                 /* do nothing */
     49#   define psTraceSetDestination(fp)    true    /* success */
     50#   define psTraceGetDestination()      2       /* destination is stderr */
     51#   define psTraceLevels()              psMetadataAlloc() /* empty metadata */
    5252#   define PS_TRACE_ON                  0
    5353
Note: See TracChangeset for help on using the changeset viewer.