// -*- C++ -*-
-#ifndef _LASSERT_H_
-#define _LASSERT_H_
+#ifndef LASSERT_H
+#define LASSERT_H
//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)
{
abort();
}
}
-#endif
+#endif /* HAVE_PARTIAL_SPECIALIZATION */
//template<class A, class E> inline void Assert(A assertion, E except)
//{
#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 */
+