* 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
This commit is contained in:
Walter Negro
2002-03-24 16:02:16 +00:00
parent eef9e1ab83
commit 0250476453

View File

@@ -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