Small fixes

This commit is contained in:
Jeremy 2023-10-07 15:05:50 -04:00
parent 8bb8a2020c
commit 2e0fa880bc
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
2 changed files with 4 additions and 4 deletions

View File

@ -126,8 +126,8 @@ namespace cpptrace {
// utilities: // utilities:
CPPTRACE_API std::string demangle(const std::string& name); CPPTRACE_API std::string demangle(const std::string& name);
CPPTRACE_API bool isatty(int fd);
CPPTRACE_API void absorb_trace_exceptions(bool absorb); CPPTRACE_API void absorb_trace_exceptions(bool absorb);
CPPTRACE_API bool isatty(int fd);
CPPTRACE_API extern const int stdin_fileno; CPPTRACE_API extern const int stdin_fileno;
CPPTRACE_API extern const int stderr_fileno; CPPTRACE_API extern const int stderr_fileno;

View File

@ -324,9 +324,9 @@ namespace cpptrace {
return detail::isatty(fd); return detail::isatty(fd);
} }
CPPTRACE_API const int stdin_fileno = detail::fileno(stdin); CPPTRACE_API extern const int stdin_fileno = detail::fileno(stdin);
CPPTRACE_API const int stdout_fileno = detail::fileno(stdout); CPPTRACE_API extern const int stdout_fileno = detail::fileno(stdout);
CPPTRACE_API const int stderr_fileno = detail::fileno(stderr); CPPTRACE_API extern const int stderr_fileno = detail::fileno(stderr);
namespace detail { namespace detail {
std::atomic_bool absorb_trace_exceptions(true); // NOSONAR std::atomic_bool absorb_trace_exceptions(true); // NOSONAR