]> git.lyx.org Git - features.git/blobdiff - src/client/debug.h
reduce line noise
[features.git] / src / client / debug.h
index f0c604a78041bae1c7e6f2781b1ed19afd917bb5..5ea84e70ea3dcb5c3401bd5ebe632faae29c1ee8 100644 (file)
@@ -37,9 +37,7 @@ public:
                ANY = 0xffffffff
        };
 
-       static bool match(type a, type b) {
-               return (a & b);
-       }
+       static bool match(type a, type b) { return (a & b); }
 
        /** A function to convert symbolic string names on debug levels
            to their numerical value.
@@ -72,7 +70,9 @@ extern LyXErr lyxerr;
 
 } // namespace lyx
 
-#define LYXERR(type) if (!lyx::lyxerr.debugging(type)) ; else lyx::lyxerr
+#define LYXERR(type, msg) \
+       do { if (!lyx::lyxerr.debugging(type)) {} \
+       else lyx::lyxerr << msg  << std::endl; } while (0)
 
 
 #endif