]> git.lyx.org Git - lyx.git/blobdiff - src/support/debug.h
Correct comment
[lyx.git] / src / support / debug.h
index 10bb5a7e87326d47042cee820ec3d0edc1f7aadc..112b66a43bc9848cedb5f7b34988b7d50f83e392 100644 (file)
@@ -229,6 +229,18 @@ extern LyXErr lyxerr;
                else { lyx::lyxerr << CURRENT_POSITION << msg; lyx::lyxerr.endl(); } \
        } while (0)
 
+#define LYXERR_NOENDL(type, msg) \
+       do { \
+               if (!lyx::lyxerr.debugging(type)) {} \
+               else { lyx::lyxerr << CURRENT_POSITION << msg; } \
+       } while (0)
+
+#define LYXERR_NOPOS(type, msg) \
+       do { \
+               if (!lyx::lyxerr.debugging(type)) {} \
+               else { lyx::lyxerr << msg; lyx::lyxerr.endl(); } \
+       } while (0)
+
 #define LYXERR0(msg) \
        do { \
                lyx::lyxerr << CURRENT_POSITION << msg; lyx::lyxerr.endl(); \