2002-09-25 10:03:41 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file LAssert.C
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:09:55 +00:00
|
|
|
|
*
|
2002-09-25 10:03:41 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
2002-03-21 17:09:55 +00:00
|
|
|
|
*
|
2002-09-25 10:03:41 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
|
*/
|
2000-06-12 11:27:15 +00:00
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#include "LAssert.h"
|
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_ASSERTIONS
|
2001-10-19 15:13:49 +00:00
|
|
|
|
#include "lyx_main.h"
|
2000-06-12 11:27:15 +00:00
|
|
|
|
|
2001-10-19 15:13:49 +00:00
|
|
|
|
void emergencyCleanup() {
|
|
|
|
|
static bool didCleanup;
|
|
|
|
|
if (didCleanup)
|
2000-06-12 11:27:15 +00:00
|
|
|
|
return;
|
|
|
|
|
|
2001-10-19 15:13:49 +00:00
|
|
|
|
didCleanup = true;
|
2000-06-12 11:27:15 +00:00
|
|
|
|
|
2001-10-19 15:13:49 +00:00
|
|
|
|
LyX::emergencyCleanup();
|
2000-06-12 11:27:15 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|