Program exit functions and macros.
More...
#include <utility/exit.hh>
#include <utility/excn/EXCN_Base.hh>
#include <utility/backtrace.hh>
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <unistd.h>
#include <cstdio>
|
void | utility::set_main_exit_callback (UtilityExitCallBack=0) |
| Set call back funtion that will be called on utility::exit. Use this function to overload default behavior of sys.exit to more appropriate to your application Defaut value for callback function is 0, whicth mean no sys exit is called. More...
|
|
std::vector
< UtilityExitCallBack > & | utility::get_all_exit_callbacks () |
| Array to hold all additional exit-callbacks. More...
|
|
void | utility::add_exit_callback (UtilityExitCallBack) |
| Add additional callback function that will be called before standard exit(…) is executed. [Note: do not confuse this function with 'set_main_exit_callback' which is replacing the end behavior of exit(…)]. More...
|
|
void | utility::remove_exit_callback (UtilityExitCallBack) |
| Remove additional callback function that was previously added by using add_exit_callback. More...
|
|
void | utility::exit (std::string const &file, int const line, std::string const &message, int const status) |
| Exit with file + line + message + optional status. More...
|
|
int | utility::cond_exit (bool condition, std::string const &file, int const line, std::string const &message, int const status) |
| Conditional Exit with file + line + message + optional status. More...
|
|