mirror of
https://github.com/QuasarApp/backward-cpp.git
synced 2025-05-08 07:49:33 +00:00
(Cosmetic) move helpers functions all together
This commit is contained in:
parent
a69e228791
commit
c3dd434ec8
12
backward.hpp
12
backward.hpp
@ -2067,11 +2067,6 @@ public:
|
|||||||
virtual void rethrow() const { throw static_cast<const E&>(*this); }
|
virtual void rethrow() const { throw static_cast<const E&>(*this); }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename E>
|
|
||||||
inline void raise(const E& e) {
|
|
||||||
throw exception_with_st_mixin<E>(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
class ExceptionHandling {
|
class ExceptionHandling {
|
||||||
public:
|
public:
|
||||||
static ExceptionHandling& instance() {
|
static ExceptionHandling& instance() {
|
||||||
@ -2226,6 +2221,13 @@ private:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*************** HELPERS FUNCTIONS **************/
|
||||||
|
|
||||||
|
template <typename E>
|
||||||
|
inline void raise(const E& e) {
|
||||||
|
throw exception_with_st_mixin<E>(e);
|
||||||
|
}
|
||||||
|
|
||||||
inline void pprint_current_exception() {
|
inline void pprint_current_exception() {
|
||||||
ExceptionHandling::pprint_current_exception();
|
ExceptionHandling::pprint_current_exception();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user