7 #ifdef ENABLE_ASSERTIONS
9 //template<class X, class A> inline void Assert(A assertion)
10 template<class A> inline void Assert(A assertion)
12 //if (!assertion) throw X();
18 #ifdef HAVE_PARTIAL_SPECIALIZATION
19 // Not too sure if this is the correct way to specialize
20 template<class A> inline void Assert(A * ptr)
22 Assert<void const *>(ptr);
24 template<> inline void Assert(void const * ptr)
30 #endif /* HAVE_PARTIAL_SPECIALIZATION */
32 //template<class A, class E> inline void Assert(A assertion, E except)
34 // if (!assertion) except;
39 template<class A> inline void Assert(A /*assertion*/) {}
41 #endif /* ENABLE_ASSERTIONS */
44 //} // end of namespace LyX
47 #endif /* LASSERT_H */