]> git.lyx.org Git - lyx.git/blob - src/support/LAssert.C
Create a grfx::Loader class and so move large chunks of code out of
[lyx.git] / src / support / LAssert.C
1 /* This file is part of
2  * ======================================================
3  *
4  *           LyX, The Document Processor
5  *
6  *          Copyright 1995 Matthias Ettrich
7  *          Copyright 1995-2001 The LyX Team.
8  *
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