diff options
author | Christopher Faylor <me@cgf.cx> | 2002-01-28 21:03:40 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-01-28 21:03:40 +0300 |
commit | 6616e6cf767f6567f2b13380c0488730395c6703 (patch) | |
tree | 700d3100705256e000c78af2ff10dcb26fb0ebbd /winsup/cygwin/include | |
parent | 5aa2ffa962c79f678ba9bb334687c2d03a2dcb14 (diff) |
* include/sys/strace.h (_STRACE_ON): Define.
(_STRACE_OFF): Ditto.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/sys/strace.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/include/sys/strace.h b/winsup/cygwin/include/sys/strace.h index 87cc1d785..7b0e1a2cc 100644 --- a/winsup/cygwin/include/sys/strace.h +++ b/winsup/cygwin/include/sys/strace.h @@ -77,6 +77,13 @@ extern strace strace; #define _STRACE_MALLOC 0x20000 // trace malloc calls #define _STRACE_THREAD 0x40000 // thread-locking calls #define _STRACE_NOTALL 0x80000 // don't include if _STRACE_ALL +#if defined (DEBUGGING) +# define _STRACE_ON strace.active = 1; +# define _STRACE_OFF strace.active = 0; +#else +# define _STRACE_ON +# define _STRACE_OFF +#endif #ifdef __cplusplus extern "C" { |