Small header refactor
This commit is contained in:
parent
c161293e89
commit
589d87063a
@ -238,7 +238,6 @@ namespace cpptrace {
|
|||||||
|
|
||||||
// utilities:
|
// utilities:
|
||||||
CPPTRACE_EXPORT std::string demangle(const std::string& name);
|
CPPTRACE_EXPORT std::string demangle(const std::string& name);
|
||||||
CPPTRACE_EXPORT void absorb_trace_exceptions(bool absorb);
|
|
||||||
CPPTRACE_EXPORT bool isatty(int fd);
|
CPPTRACE_EXPORT bool isatty(int fd);
|
||||||
|
|
||||||
CPPTRACE_EXPORT extern const int stdin_fileno;
|
CPPTRACE_EXPORT extern const int stdin_fileno;
|
||||||
@ -247,6 +246,9 @@ namespace cpptrace {
|
|||||||
|
|
||||||
CPPTRACE_EXPORT void register_terminate_handler();
|
CPPTRACE_EXPORT void register_terminate_handler();
|
||||||
|
|
||||||
|
// configuration:
|
||||||
|
CPPTRACE_EXPORT void absorb_trace_exceptions(bool absorb);
|
||||||
|
|
||||||
enum class cache_mode {
|
enum class cache_mode {
|
||||||
// Only minimal lookup tables
|
// Only minimal lookup tables
|
||||||
prioritize_memory = 0,
|
prioritize_memory = 0,
|
||||||
@ -260,6 +262,7 @@ namespace cpptrace {
|
|||||||
CPPTRACE_EXPORT void set_cache_mode(cache_mode mode);
|
CPPTRACE_EXPORT void set_cache_mode(cache_mode mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// tracing exceptions:
|
||||||
namespace detail {
|
namespace detail {
|
||||||
// This is a helper utility, if the library weren't C++11 an std::variant would be used
|
// This is a helper utility, if the library weren't C++11 an std::variant would be used
|
||||||
class CPPTRACE_EXPORT lazy_trace_holder {
|
class CPPTRACE_EXPORT lazy_trace_holder {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user