]> git.lyx.org Git - lyx.git/blobdiff - src/support/LAssert.h
some new (not extensive) changes, some fixes, will probably reverto to .la libs later...
[lyx.git] / src / support / LAssert.h
index 0463c9e7306c75c6943500c4e08dd9bf5051f16b..20be3713c55e4e12b6870a0b1dcbc2ff7c5ee995 100644 (file)
@@ -4,8 +4,8 @@
 
 //namespace LyX {
 
-#define HAVE_TEMPLATE
-#ifdef HAVE_TEMPLATE
+#ifdef ENABLE_ASSERTIONS
+
 //template<class X, class A> inline void Assert(A assertion)
 template<class A> inline void Assert(A assertion)
 {
@@ -23,7 +23,7 @@ template<class A> inline void Assert(A * ptr)
                abort();
        }
 }
-#endif
+#endif /* HAVE_PARTIAL_SPECIALIZATION  */ 
 
 //template<class A, class E> inline void Assert(A assertion, E except)
 //{
@@ -32,12 +32,13 @@ template<class A> inline void Assert(A * ptr)
 
 #else
 
-inline void lyx_assert(...)
-{
-       // nothing
-}
+template<class A> inline void Assert(A /*assertion*/) {}
+
+#endif /* ENABLE_ASSERTIONS */
 
-#endif
-#endif
 
 //} // end of namespace LyX
+
+
+#endif /* LASSERT_H */
+