X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_menus.c;h=844afa7e26e0ab4a648b0b6ec0f9bade4c6bdd7e;hp=5673deff216dd231386111798e91e8d4bfe0f885;hb=d76c9bfec68e0efa6e1b8e95b32b66caf25cfc12;hpb=6b99a559185b3b8fad80b56bc2070b08101c33d1 diff --git a/test/demo_menus.c b/test/demo_menus.c index 5673deff..844afa7e 100644 --- a/test/demo_menus.c +++ b/test/demo_menus.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_menus.c,v 1.66 2019/04/06 20:42:48 tom Exp $ + * $Id: demo_menus.c,v 1.67 2019/08/10 19:25:27 tom Exp $ * * Demonstrate a variety of functions from the menu library. * Thomas Dickey - 2005/4/9 @@ -110,6 +110,8 @@ static WINDOW *status; static bool loaded_file = FALSE; static char empty[1]; + +#ifdef TRACE static void failed(const char *s) GCC_NORETURN; static void @@ -119,6 +121,7 @@ failed(const char *s) endwin(); ExitProgram(EXIT_FAILURE); } +#endif /* Common function to allow ^T to toggle trace-mode in the middle of a test * so that trace-files can be made smaller.