Introduce helper function to emit indentation

This commit is contained in:
Massimo Fioravanti
2021-12-23 16:07:02 +01:00
committed by Alessandro Di Federico
parent afbebaf531
commit b4f9162078
+7
View File
@@ -23,6 +23,13 @@ extern size_t MaxLoggerNameLength;
#define debug_function __attribute__((used, noinline))
/// \brief Emits \p Indentation space pairs
template<typename Stream>
void indent(Stream &Output, size_t Indentation) {
for (size_t I = 0; I < Indentation; I++)
Output << " ";
}
/// \brief Stream an instance of this class to call Logger::emit()
struct LogTerminator {
const char *File;