#define LYXDEBUG_H
#include "support/debugstream.h"
-#include "support/docstring.h"
+#include "support/strfwd.h"
namespace lyx {
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.
} // 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