X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/60f31f9d24bd348ccad2ea99ba96424360b11a92..89ce21820a3a7c09f34eba112344b9ee3afecca4:/include/gras/log.h 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. */