Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Macros | Functions
crash_report.hh File Reference
#include <string>

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0.
 

Macros

#define do_crash(message)   utility::save_crash_report( message, __FILE__, __LINE__ )
 

Functions

void utility::install_crash_handler ()
 Set the crash handler for non-standard crashes (e.g. segfaults) Should only be called once at startup. More...
 
void utility::set_application_name (char const *appname)
 Set the application name that this was launched as. Should only be called once on startup. More...
 
void utility::set_options_string (std::string const &options)
 Set the string representation of the options to be used in the crash report Should only be called once on startup. More...
 
void utility::set_show_crash_report_on_console (bool setting)
 If passed true, any backtrace will show up on stderr in addition to the crash report file. More...
 
void utility::save_crash_report (char const *message="(none)", std::string const &file="(none)", int const line=0)
 Save a crash report to the crash reporter file. More...
 
void utility::save_crash_report (char const *message, std::string const &file, int line, std::string const &traceback)
 
void utility::save_crash_report (std::string const &message, std::string const &file="(none)", int const line=0)
 Save a crash report to the crash reporter file. More...
 
void utility::save_crash_report (std::string const &message, std::string const &file, int const line, std::string const &traceback)
 
void utility::save_crash_report_to_file (char const *message, std::string const &file, int line, std::string const &traceback)
 
void utility::save_crash_report_to_console (char const *, std::string const &, int, std::string const &traceback)
 

Macro Definition Documentation

#define do_crash (   message)    utility::save_crash_report( message, __FILE__, __LINE__ )