/* This file is part of
* ======================================================
- *
+ *
* LyX, The Document Processor
- *
+ *
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2001 The LyX Team.
*
#include "LAssert.h"
#ifdef ENABLE_ASSERTIONS
-#include "bufferlist.h"
-
-extern BufferList bufferlist;
+#include "lyx_main.h"
-void emergencySave() {
- static bool didSafe;
- if (didSafe)
+void emergencyCleanup() {
+ static bool didCleanup;
+ if (didCleanup)
return;
- didSafe = true;
+ didCleanup = true;
- // emergency save
- if (!bufferlist.empty())
- bufferlist.emergencyWriteAll();
+ LyX::emergencyCleanup();
}
#endif