mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
General refactoring of beast framework classes
This commit is contained in:
@@ -4,20 +4,14 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#ifdef TWICE
|
||||
#error die
|
||||
#endif
|
||||
|
||||
#define TWICE
|
||||
|
||||
FatalErrorReporter::FatalErrorReporter ()
|
||||
{
|
||||
FatalError::setReporter (*this);
|
||||
m_savedReporter = FatalError::setReporter (this);
|
||||
}
|
||||
|
||||
FatalErrorReporter::~FatalErrorReporter ()
|
||||
{
|
||||
FatalError::resetReporter (*this);
|
||||
FatalError::setReporter (m_savedReporter);
|
||||
}
|
||||
|
||||
void FatalErrorReporter::reportMessage (String& formattedMessage)
|
||||
@@ -25,6 +25,9 @@ public:
|
||||
~FatalErrorReporter ();
|
||||
|
||||
void reportMessage (String& formattedMessage);
|
||||
|
||||
private:
|
||||
FatalError::Reporter* m_savedReporter;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -29,8 +29,8 @@ namespace ripple
|
||||
// Application
|
||||
//
|
||||
|
||||
# include "main/ripple_FatalErrorReporter.h"
|
||||
#include "main/ripple_FatalErrorReporter.cpp"
|
||||
# include "main/FatalErrorReporter.h"
|
||||
#include "main/FatalErrorReporter.cpp"
|
||||
|
||||
# include "peers/PeerDoor.h"
|
||||
#include "peers/PeerDoor.cpp"
|
||||
|
||||
Reference in New Issue
Block a user