CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <[EMAIL PROTECTED]> 05/03/26 16:19:31

Modified files:
        src            : log.hpp 

Log message:
        New construct to prevent the game to format and then discard log 
messages: LOG_STREAM(warn, network) will produce a log stream when necessary.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/log.hpp.diff?tr1=1.20&tr2=1.21&r1=text&r2=text

Patches:
Index: wesnoth/src/log.hpp
diff -u wesnoth/src/log.hpp:1.20 wesnoth/src/log.hpp:1.21
--- wesnoth/src/log.hpp:1.20    Sat Mar 26 16:19:08 2005
+++ wesnoth/src/log.hpp Sat Mar 26 16:19:31 2005
@@ -1,4 +1,4 @@
-/* $Id: log.hpp,v 1.20 2005/03/26 16:19:08 silene Exp $ */
+/* $Id: log.hpp,v 1.21 2005/03/26 16:19:31 silene Exp $ */
 /*
    Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
                  2004 by Guillaume Melquiond <[EMAIL PROTECTED]>
@@ -58,6 +58,6 @@
 #define log_scope(a) lg::scope_logger scope_logging_object__(lg::general, a);
 #define log_scope2(a,b) lg::scope_logger scope_logging_object__(lg::a, b);
 
-#define LOG_HELPER(a, b) if (lg::a.dont_log(lg::b)) ; else lg::a(lg::b)
+#define LOG_STREAM(a, b) if (lg::a.dont_log(lg::b)) ; else lg::a(lg::b)
 
 #endif


Reply via email to