diff options
Diffstat (limited to 'src/3rdparty/masm/wtf/PrintStream.h')
-rw-r--r-- | src/3rdparty/masm/wtf/PrintStream.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/3rdparty/masm/wtf/PrintStream.h b/src/3rdparty/masm/wtf/PrintStream.h index 6fcf9c1567..4372288aff 100644 --- a/src/3rdparty/masm/wtf/PrintStream.h +++ b/src/3rdparty/masm/wtf/PrintStream.h @@ -206,6 +206,10 @@ public: print(value12); print(value13); } + + void println(); + template<typename ...Types> + void println(Types... args); }; WTF_EXPORT_PRIVATE void printInternal(PrintStream&, const char*); @@ -227,6 +231,19 @@ void printInternal(PrintStream& out, const T& value) value.dump(out); } +inline +void PrintStream::println() +{ + print("\n"); +} + +template<typename ...Types> +void PrintStream::println(Types... args) +{ + print(args...); + print("\n"); +} + #define MAKE_PRINT_ADAPTOR(Name, Type, function) \ class Name { \ public: \ |