]> git.lyx.org Git - features.git/blobdiff - src/support/LAssert.h
some important changes to FIX_DOUBLE_SPCE still not completely correct (please help...
[features.git] / src / support / LAssert.h
index e429df8c11cf99ad5e82ea59f1d47c6aacfb434d..cbcb53df647f1c7b586506b2d8cf526b706ef29b 100644 (file)
@@ -2,6 +2,8 @@
 #ifndef LASSERT_H
 #define LASSERT_H
 
+#include "support/lyxlib.h"
+
 //namespace LyX {
 
 #ifdef ENABLE_ASSERTIONS
@@ -11,7 +13,7 @@ template<class A> inline void Assert(A assertion)
 {
        //if (!assertion) throw X();
        if (!assertion) {
-               abort();
+               lyx::abort();
        }
 }
 
@@ -24,7 +26,7 @@ template<class A> inline void Assert(A * ptr)
 template<> inline void Assert(void const * ptr)
 {
        if (!ptr) {
-               abort();
+               lyx::abort();
        }
 }
 #endif /* HAVE_PARTIAL_SPECIALIZATION  */