summaryrefslogtreecommitdiffstats
path: root/util/stream/debug.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/stream/debug.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/stream/debug.h')
-rw-r--r--util/stream/debug.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/stream/debug.h b/util/stream/debug.h
index 92d6d4b42da..cd7e42c146f 100644
--- a/util/stream/debug.h
+++ b/util/stream/debug.h
@@ -1,7 +1,7 @@
#pragma once
-
-#include "output.h"
-
+
+#include "output.h"
+
/**
* @addtogroup Streams
* @{
@@ -11,23 +11,23 @@
* Debug output stream. Writes into `stderr`.
*/
class TDebugOutput: public IOutputStream {
-public:
+public:
inline TDebugOutput() noexcept = default;
~TDebugOutput() override = default;
-
+
TDebugOutput(TDebugOutput&&) noexcept = default;
TDebugOutput& operator=(TDebugOutput&&) noexcept = default;
-private:
+private:
void DoWrite(const void* buf, size_t len) override;
-};
-
+};
+
/**
* @returns Standard debug stream.
* @see Cdbg
*/
IOutputStream& StdDbgStream() noexcept;
-
+
/**
* This function returns the current debug level as set via `DBGOUT` environment
* variable.
@@ -48,6 +48,6 @@ int StdDbgLevel() noexcept;
* If this variable is set, then this stream is redirected into `stderr`,
* otherwise whatever is written into it is simply ignored.
*/
-#define Cdbg (StdDbgStream())
-
+#define Cdbg (StdDbgStream())
+
/** @} */