4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS
15 #include "support/lyxlib.h"
17 extern void emergencyCleanup();
21 #ifdef ENABLE_ASSERTIONS
24 This is a debug tool to ensure that the assertion holds. If it don't hole
25 we run #emergencyCleanup()# and then #lyx::abort".
26 @param assertion this should evaluate to true unless you want an abort.
30 void Assert(A assertion)
41 When compiling without assertions we use this no-op function.
45 void Assert(A /*assertion*/) {}
47 #endif /* ENABLE_ASSERTIONS */
49 } // end of namespace LyX
51 #endif /* LASSERT_H */