Commit 25f37cec authored by Roland Levillain's avatar Roland Levillain
Browse files

Fix mln::io::abort().

	* mln/io/abort.hh (mln::io::abort): Delegate to std::abort instead
	of std::exit.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@4074 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent c22b5421
2009-06-10 Roland Levillain <roland@lrde.epita.fr>
Fix mln::io::abort().
* mln/io/abort.hh (mln::io::abort): Delegate to std::abort instead
of std::exit.
2009-06-10 Roland Levillain <roland@lrde.epita.fr>
 
Regen Makefile helpers.
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
// Copyright (C) 2007, 2008, 2009 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of Olena.
//
......@@ -27,11 +28,11 @@
# define MLN_IO_ABORT_HH
/// \file
///
/// Define a function which aborts a process in io module.
# include <iostream>
# include <cstdlib>
# include <iostream>
namespace mln
......@@ -52,7 +53,7 @@ namespace mln
void abort()
{
std::cerr << "I/O error, aborting." << std::endl;
std::exit(0);
std::abort();
}
# endif // ! MLN_INCLUDE_ONLY
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment