5 #include "support/lyxlib.h"
7 extern void emergencyCleanup();
11 #ifdef ENABLE_ASSERTIONS
14 This is a debug tool to ensure that the assertion holds. If it don't hole
15 we run #emergencyCleanup()# and then #lyx::abort".
16 @param assertion this should evaluate to true unless you want an abort.
20 void Assert(A assertion)
31 When compiling without assertions we use this no-op function.
35 void Assert(A /*assertion*/) {}
37 #endif /* ENABLE_ASSERTIONS */
39 } // end of namespace LyX
41 #endif /* LASSERT_H */