[AD] New DEBUGMODE level

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I'd like to introduce (on trunk and branch) a new DEBUGMODE level in order to 
avoid polluting the debugger with internal debug messages under Windows.

-- 
Eric Botcazou
--- /cvs/allegro/makefile.all	Tue Nov 19 16:25:02 2002
+++ allegro/makefile.all	Wed Jan  8 11:42:34 2003
@@ -5,6 +5,7 @@
 #
 #     Environment variables:
 #        DEBUGMODE=1        selects a debug build.
+#        DEBUGMODE=2        selects a build intended to debug Allegro itself.
 #        PROFILEMODE=1      selects a profiling build.
 #        WARNMODE=1         selects strict compiler warnings.
 #        STATICLINK=1       use static linking (MSVC, Mingw32).
--- /cvs/allegro/include/allegro/platform/aintwin.h	Tue Nov 26 16:55:04 2002
+++ allegro/include/allegro/platform/aintwin.h	Wed Jan  8 11:52:20 2003
@@ -201,7 +201,7 @@
 AL_FUNC(char* , win_err_str, (long err));
 AL_FUNC(void, thread_safe_trace, (char *msg, ...));
 
-#ifdef DEBUGMODE
+#if DEBUGMODE >= 2
    #define _TRACE                 thread_safe_trace
 #else
    #define _TRACE                 1 ? (void) 0 : thread_safe_trace
--- /cvs/allegro/docs/src/allegro._tx	Wed Jan  8 10:31:30 2003
+++ allegro/docs/src/allegro._tx	Wed Jan  8 11:56:28 2003
@@ -8986,6 +8986,10 @@
    DEBUGMODE=1<br>
    Selects a debug build, rather than the normal optimised version.
 <li>
+   DEBUGMODE=2<br>
+   Selects a build intended to debug Allegro itself, rather than the
+   normal optimised version.
+<li>
    PROFILEMODE=1<br>
    Selects a profiling build, rather than the normal optimised version.
 <li>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/