]> git.lyx.org Git - lyx.git/blob - src/support/lassert.h
add onoff support for "inset-modify changetype xxx" in include inset
[lyx.git] / src / support / lassert.h
1 // -*- C++ -*-
2 /**
3  * \file support/lassert.h
4  *
5  * This file is part of LyX, the document processor.
6  * Licence details can be found in the file COPYING.
7  *
8  * \author André Pönitz
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef LASSERT_H
14 #define LASSERT_H
15
16 #ifdef __cplusplus
17 namespace lyx {
18
19 void doAssert(char const * expr, char const * file, long line);
20
21 } // namespace lyx
22
23 #define LASSERT(expr, escape) \
24         if (expr) {} else { lyx::doAssert(#expr, __FILE__, __LINE__); escape; }
25 #endif
26
27 #endif // LASSERT