mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
Introduce helper function to emit indentation
This commit is contained in:
committed by
Alessandro Di Federico
parent
afbebaf531
commit
b4f9162078
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user