From 89ce21820a3a7c09f34eba112344b9ee3afecca4 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 6 Sep 2004 13:46:51 +0000 Subject: [PATCH 1/1] NDEBUG remove also debugging logs git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@390 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/gras/log.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/gras/log.h b/include/gras/log.h index 585c05fc3e..d918122048 100644 --- a/include/gras/log.h +++ b/include/gras/log.h @@ -66,9 +66,14 @@ typedef enum { # define GRAS_LOG_STATIC_THRESHOLD gras_log_priority_infinite #else -#ifndef GRAS_LOG_STATIC_THRESHOLD -# define GRAS_LOG_STATIC_THRESHOLD gras_log_priority_none -#endif +# ifdef NDEBUG +# define GRAS_LOG_STATIC_THRESHOLD gras_log_priority_verbose +# else /* !NLOG && !NDEBUG */ + +# ifndef GRAS_LOG_STATIC_THRESHOLD +# define GRAS_LOG_STATIC_THRESHOLD gras_log_priority_none +# endif /* !GRAS_LOG_STATIC_THRESHOLD */ +# endif /* NDEBUG */ #endif /* !defined(NLOG) */ /* Transforms a category name to a global variable name. */ -- 2.20.1