ARTS
2.3.1285(git:92a29ea9-dirty)
|
This file contains global functions. More...
#include "arts.h"
#include <unistd.h>
#include <cstdlib>
#include <stdexcept>
#include "file.h"
#include "messages.h"
Go to the source code of this file.
Functions | |
void | arts_exit (int status) |
This is the exit function of ARTS. More... | |
void | arts_exit_with_error_message (const String &m, ArtsOut &out) |
Print error message and exit. More... | |
void arts_exit | ( | int | status | ) |
This is the exit function of ARTS.
Whenever arts has to be terminated at some point, call this function.
You can call without any parameters, since the exit status then defaults to EXIT_FAILURE.
status | Exit code. EXIT_FAILURE if omitted. |
Definition at line 42 of file arts.cc.
References add_basedir(), cleanup_output_file(), out_basename, report_file, and _CS_basic_sstream_base< _CS_cT, _CS_Tr, _CS_Al >::str().
Referenced by arts_exit_with_error_message(), c_errmsg(), Exit(), interp_poly(), main(), operator<<(), AgRecord::operator=(), MdRecord::operator=(), option_describe(), option_input(), option_methods(), option_workspacevariables(), polite_goodby(), set_reporting_level(), and VectorInsertGridPoints().
Print error message and exit.
This function is intended for use in catch blocks.
m | Error message. |
m | ArtsOut stream to use. |
Definition at line 64 of file arts.cc.
References add_basedir(), arts_exit(), Verbosity::get_file_verbosity(), Verbosity::get_screen_verbosity(), ArtsOut::get_verbosity(), out_basename, and _CS_basic_sstream_base< _CS_cT, _CS_Tr, _CS_Al >::str().