From 0250476453e416f5a716bc78ced9b7ff02e8a004 Mon Sep 17 00:00:00 2001 From: Walter Negro Date: Sun, 24 Mar 2002 16:02:16 +0000 Subject: [PATCH] * include\hbtrace.h + Added #defines HB_TR_LEVEL_xxx * This allows to skip the limitation of DOS and WINDOWS to include the symbol '=' inside an environment variable. Ex: SET CFLAGS=-DHB_TR_LEVEL_DEBUG it's equal to SET CFLAGS=-DHB_TR_LEVEL_DEBUG=5 // Not permited in DOS &WIN --- harbour/include/hbtrace.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/harbour/include/hbtrace.h b/harbour/include/hbtrace.h index bed6364b82..064c3b1efb 100644 --- a/harbour/include/hbtrace.h +++ b/harbour/include/hbtrace.h @@ -79,6 +79,26 @@ extern "C" { * If we compiled without specifying a -DHB_TR_LEVEL, use the value * for HB_TR_DEFAULT. */ + +#ifdef HB_TR_LEVEL_ALWAYS +#define HB_TR_LEVEL HB_TR_ALWAYS +#endif +#ifdef HB_TR_LEVEL_FATAL +#define HB_TR_LEVEL HB_TR_FATAL +#endif +#ifdef HB_TR_LEVEL_ERROR +#define HB_TR_LEVEL HB_TR_ERROR +#endif +#ifdef HB_TR_LEVEL_WARNING +#define HB_TR_LEVEL HB_TR_WARNING +#endif +#ifdef HB_TR_LEVEL_INFO +#define HB_TR_LEVEL HB_TR_INFO +#endif +#ifdef HB_TR_LEVEL_DEBUG +#define HB_TR_LEVEL HB_TR_DEBUG +#endif + #ifndef HB_TR_LEVEL #define HB_TR_LEVEL HB_TR_DEFAULT #endif