]> git.lyx.org Git - lyx.git/blob - src/support/LAssert.C
another safety belt
[lyx.git] / src / support / LAssert.C
1 /**
2  * \file LAssert.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "LAssert.h"
18
19 #ifdef ENABLE_ASSERTIONS
20 #include "lyx_main.h"
21
22 void emergencyCleanup() {
23         static bool didCleanup;
24         if (didCleanup)
25                 return;
26
27         didCleanup = true;
28
29         LyX::emergencyCleanup();
30 }
31
32 #endif