diff options
Diffstat (limited to 'src/3rdparty/masm/wtf/PrintStream.cpp')
-rw-r--r-- | src/3rdparty/masm/wtf/PrintStream.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/3rdparty/masm/wtf/PrintStream.cpp b/src/3rdparty/masm/wtf/PrintStream.cpp index 7dd40609..c6123e17 100644 --- a/src/3rdparty/masm/wtf/PrintStream.cpp +++ b/src/3rdparty/masm/wtf/PrintStream.cpp @@ -27,6 +27,8 @@ #include "PrintStream.h" #include <stdio.h> +#include <wtf/text/CString.h> +#include <wtf/text/WTFString.h> namespace WTF { @@ -50,6 +52,16 @@ void printInternal(PrintStream& out, const char* string) out.printf("%s", string); } +void printInternal(PrintStream& out, const CString& string) +{ + out.print(string.data()); +} + +void printInternal(PrintStream& out, const String& string) +{ + out.print(string.utf8()); +} + void printInternal(PrintStream& out, bool value) { if (value) |