]> git.lyx.org Git - lyx.git/blob - src/support/assert.h
there is no trunk/src/intl folder
[lyx.git] / src / support / assert.h
1 // -*- C++ -*-
2 /**
3  * \file support/assert.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 namespace lyx {
17
18 void doAssert(char const * expr, char const * file, long line);
19
20 } // namespace lyx
21
22 #define LASSERT(expr, escape) \
23         if (expr) {} else { lyx::doAssert(#expr, __FILE__, __LINE__); escape; }
24
25
26 #endif // LASSERT