]> 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 df421ccaa7d75a0a39cf92c586b53d52e74f7234..82f0732c445bf10aafaaba5b2835306f60926063 100644 (file)
@@ -17,6 +17,8 @@
 #include "support/lstrings.h"
 #include "support/FileName.h"
 
+#include <boost/assert.hpp>
+
 #include <iostream>
 #include <iomanip>
 
@@ -185,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