mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-09 05:34:34 +00:00
Fix Windows Debug build
This was a regression from https://gitlab.com/OpenMW/openmw/-/merge_requests/4596 Also move more things into the anonymous namespace because there's not really a reason not to and I had to rearrange things anyway.
This commit is contained in:
parent
ea8369eff0
commit
396cd1c727
1 changed files with 97 additions and 97 deletions
|
|
@ -106,6 +106,8 @@ namespace Debug
|
||||||
logListener = std::move(listener);
|
logListener = std::move(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
class DebugOutputBase : public boost::iostreams::sink
|
class DebugOutputBase : public boost::iostreams::sink
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -192,8 +194,6 @@ namespace Debug
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
|
|
||||||
namespace
|
|
||||||
{
|
|
||||||
struct Record
|
struct Record
|
||||||
{
|
{
|
||||||
std::string mValue;
|
std::string mValue;
|
||||||
|
|
@ -324,6 +324,7 @@ namespace Debug
|
||||||
First mFirst;
|
First mFirst;
|
||||||
Second mSecond;
|
Second mSecond;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
Level toLevel(std::string_view value)
|
Level toLevel(std::string_view value)
|
||||||
{
|
{
|
||||||
|
|
@ -340,8 +341,6 @@ namespace Debug
|
||||||
|
|
||||||
return Verbose;
|
return Verbose;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static std::unique_ptr<std::ostream> rawStdout = nullptr;
|
static std::unique_ptr<std::ostream> rawStdout = nullptr;
|
||||||
static std::unique_ptr<std::ostream> rawStderr = nullptr;
|
static std::unique_ptr<std::ostream> rawStderr = nullptr;
|
||||||
|
|
@ -356,6 +355,7 @@ namespace Debug
|
||||||
static boost::iostreams::stream_buffer<Tee<Buffer, Coloured>> bufferedOut;
|
static boost::iostreams::stream_buffer<Tee<Buffer, Coloured>> bufferedOut;
|
||||||
static boost::iostreams::stream_buffer<Tee<Buffer, Coloured>> bufferedErr;
|
static boost::iostreams::stream_buffer<Tee<Buffer, Coloured>> bufferedErr;
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
std::ostream& getRawStdout()
|
std::ostream& getRawStdout()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue