Replaced exit(EXIT_FAILURE) with an exception

This commit is contained in:
Ingo Ruhnke 2009-06-19 00:52:37 +02:00
parent 2893dca152
commit 07d22bb4ff

View file

@ -17,13 +17,14 @@
*/
#include <iostream>
#include <stdexcept>
#include <boost/bind.hpp>
#include <boost/format.hpp>
#include "helper.hpp"
#include "command_line_options.hpp"
#define RAISE_EXCEPTION(x) static_cast<std::ostringstream&>(std::ostringstream() << x).str()
#define RAISE_EXCEPTION(x) throw std::runtime_error(static_cast<std::ostringstream&>(std::ostringstream() << x).str())
CommandLineOptions* command_line_options = 0;