]> git.lyx.org Git - lyx.git/blobdiff - src/support/debug.cpp
there is no trunk/src/intl folder
[lyx.git] / src / support / debug.cpp
index 8d8d5cbe95a1e3a5547b33dcee56ffa0b243a7d7..82f0732c445bf10aafaaba5b2835306f60926063 100644 (file)
 
 #include <config.h>
 
-#include "support/debug.h"
-
 #include "support/convert.h"
+#include "support/debug.h"
 #include "support/gettext.h"
 #include "support/lstrings.h"
 #include "support/FileName.h"
 
+#include <boost/assert.hpp>
+
 #include <iostream>
 #include <iomanip>
 
@@ -63,6 +64,8 @@ ErrorItem errorTags[] = {
        { Debug::EXTERNAL,  "external",  N_("External template/inset messages")},
        { Debug::PAINTING,  "painting",  N_("RowPainter profiling")},
        { Debug::SCROLLING, "scrolling", N_("scrolling debugging")},
+       { Debug::MACROS,    "macros",    N_("Math macros")},
+       { Debug::RTL,       "rtl",       N_("RTL/Bidi")},
        { Debug::DEBUG,     "debug",     N_("Developers' general debug messages")},
        { Debug::ANY,       "any",       N_("All debugging messages")}
 };
@@ -184,5 +187,11 @@ LyXErr & operator<<(LyXErr & l, ios_base &(*t)(ios_base &))
 // The global instance
 LyXErr lyxerr;
 
+void doAssert(char const * expr,  char const * file, long line)
+{
+       LYXERR0("ASSERTION " << expr << " VIOLATED in " << file << ":" << line);
+       // comment this out if not needed
+       BOOST_ASSERT(false);
+}
 
 } // namespace lyx