lyx_mirror/src/support/LAssert.C
Lars Gullik Bjønnes 6bba977f42 FILMagain changes (will need some work)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@807 a592a061-630c-0410-9148-cb99ea01b6c8
2000-06-12 11:27:15 +00:00

37 lines
639 B
C

/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
* Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include "LAssert.h"
#ifdef ENABLE_ASSERTIONS
#include "bufferlist.h"
extern BufferList bufferlist;
void emergencySave() {
static bool didSafe = false;
if (didSafe)
return;
didSafe = true;
// emergency save
if (!bufferlist.empty())
bufferlist.emergencyWriteAll();
}
#endif