Log: add std::exception_ptr overloads
This commit is contained in:
14
src/Log.hxx
14
src/Log.hxx
@@ -23,9 +23,7 @@
|
||||
#include "LogLevel.hxx"
|
||||
#include "Compiler.h"
|
||||
|
||||
namespace std {
|
||||
class exception;
|
||||
}
|
||||
#include <exception>
|
||||
|
||||
class Error;
|
||||
class Domain;
|
||||
@@ -93,6 +91,16 @@ gcc_printf(2,3)
|
||||
void
|
||||
FormatError(const std::exception &e, const char *fmt, ...);
|
||||
|
||||
void
|
||||
LogError(const std::exception_ptr &ep);
|
||||
|
||||
void
|
||||
LogError(const std::exception_ptr &ep, const char *msg);
|
||||
|
||||
gcc_printf(2,3)
|
||||
void
|
||||
FormatError(const std::exception_ptr &ep, const char *fmt, ...);
|
||||
|
||||
gcc_printf(2,3)
|
||||
void
|
||||
FormatError(const Domain &domain, const char *fmt, ...);
|
||||
|
Reference in New Issue
Block a user