lyx_mirror/src/support/tests/dummy_functions.cpp

24 lines
403 B
C++
Raw Normal View History

#include <config.h>
#include "../Messages.h"
using namespace std;
namespace lyx {
// Dummy LyXRC support
struct LyXRC { string icon_set; } lyxrc;
// Keep the linker happy on Windows
void lyx_exit(int) {}
docstring const _(string const & s) { return from_ascii(s); }
// Dummy language support
Messages const & getGuiMessages()
{
static Messages lyx_messages;
return lyx_messages;
}
}