Changeset 1137 for trunk/psLib/src/sys/psTrace.h
- Timestamp:
- Jun 29, 2004, 3:09:12 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psTrace.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psTrace.h
r1081 r1137 9 9 * @author George Gusciora, MHPCC 10 10 * 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 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 16 16 #if !defined(PS_TRACE_H) 17 17 #define PS_TRACE_H 1 18 18 19 #define UNKNOWN_TRACE_LEVEL -9999 // we don't know this name's level 19 20 #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 20 41 21 42 /** Basic structure for the component tree. A component is a string of the … … 31 52 } 32 53 p_psComponent; 33 34 /** \addtogroup LogTrace35 * \{36 */37 38 /** Functions **************************************************************/39 54 40 55 #ifndef DOXYGEN … … 73 88 /* \} */ // End of SystemGroup Functions 74 89 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__) 82 91 #endif 83 92
Note:
See TracChangeset
for help on using the changeset viewer.
