y3c-stl 0.3.3
Friendly C++ STL wrapper with automatic stacktrace
Loading...
Searching...
No Matches
final_message.cc File Reference
#include "y3c/terminate.h"
#include <cpptrace/basic.hpp>
#include <cpptrace/utils.hpp>
#include <rang.hpp>
#include <iostream>
#include <ostream>
Include dependency graph for final_message.cc:

Namespaces

namespace  y3c
 
namespace  y3c::internal
 

Macros

#define define_ub_message(ub_name)
 

Functions

void strip_and_print_trace (std::ostream &stream, cpptrace::stacktrace &trace)
 
void print_header (std::ostream &stream)
 
void print_what (std::ostream &stream, const char *func, const char *what, bool quote=false)
 
void print_maybe_inaccurate (std::ostream &stream)
 
void print_y3c_exception (std::ostream &stream, const terminate_detail &e)
 
void print_current_exception (std::ostream &stream, std::exception_ptr current, skip_trace_tag={})
 
void handle_final_terminate_message () noexcept
 
void do_terminate_with (terminate_detail &&detail)
 例外を表示して強制終了する
 

Macro Definition Documentation

◆ define_ub_message

#define define_ub_message (   ub_name)
Value:
case terminate_type::ub_name: { \
stream << rang::style::bold << "undefined behavior detected"; \
stream << rang::style::reset << " ("; \
stream << rang::fg::cyan << #ub_name; \
stream << rang::fg::reset << ")"; \
break; \
}