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
18 #ifdef ENABLE_ASSERTIONS
21 This is a debug tool to ensure that the assertion holds. If it don't hole
22 we run #emergencyCleanup()# and then #lyx::abort".
23 @param assertion this should evaluate to true unless you want an abort.
25 void Assert(bool assertion);
30 When compiling without assertions we use this no-op function.
33 void Assert(bool /*assertion*/) {}
35 #endif /* ENABLE_ASSERTIONS */
37 } // namespace support
40 #endif /* LASSERT_H */