]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - progs/progs.priv.h
ncurses 6.3 - patch 20220910
[ncurses.git] / progs / progs.priv.h
index 32f4e4e8835758dede72cb8f73c15ff2801445b9..e6498db03a72978cfe978cc717ae43b2a0661eb3 100644 (file)
@@ -31,7 +31,7 @@
  *  Author: Thomas E. Dickey                    1997-on                     *
  ****************************************************************************/
 /*
- * $Id: progs.priv.h,v 1.53 2021/06/26 20:43:19 tom Exp $
+ * $Id: progs.priv.h,v 1.55 2022/09/10 21:47:39 tom Exp $
  *
  *     progs.priv.h
  *
@@ -234,6 +234,12 @@ extern int optind;
 
 #define SIZEOF(v) (sizeof(v)/sizeof(v[0]))
 
+#ifdef TRACE
+#define use_verbosity(level) do { set_trace_level(level); if (_nc_tracing > DEBUG_LEVEL(2)) _nc_tracing |= TRACE_MAXIMUM; } while (0)
+#else
+#define use_verbosity(level) do { set_trace_level(level); } while (0)
+#endif
+
 #define NCURSES_EXT_NUMBERS (NCURSES_EXT_COLORS && HAVE_INIT_EXTENDED_COLOR)
 
 #if NCURSES_EXT_NUMBERS