From: Angus Leeming Date: Mon, 2 Apr 2007 01:12:29 +0000 (+0000) Subject: LYXERR compilation fix. X-Git-Tag: 1.6.10~10367 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c9744fec96a3adfbdb8dd96390cab2b8c658bddb;p=lyx.git LYXERR compilation fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17695 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/client/debug.h b/src/client/debug.h index 7403b13638..f0c604a780 100644 --- a/src/client/debug.h +++ b/src/client/debug.h @@ -14,14 +14,15 @@ #define LYXDEBUG_H #include "support/debugstream.h" +#include "support/docstring.h" namespace lyx { /** Ideally this should have been a namespace, but since we try to be - compilable on older C++ compilators too, we use a class instead. - This is all the different debug levels that we have. -*/ + * compilable on older C++ compilators too, we use a struct instead. + * This is all the different debug levels that we have. + */ class lyx_debug_trait { public: /// @@ -64,14 +65,14 @@ void operator|=(lyx_debug_trait::type & d1, lyx_debug_trait::type d2) } -// std::ostream & operator<<(std::ostream & o, Debug::type t); - typedef basic_debugstream LyXErr; typedef LyXErr::debug Debug; extern LyXErr lyxerr; - } // namespace lyx +#define LYXERR(type) if (!lyx::lyxerr.debugging(type)) ; else lyx::lyxerr + + #endif