diff options
Diffstat (limited to 'src/gmock-printers.cc')
-rw-r--r-- | src/gmock-printers.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gmock-printers.cc b/src/gmock-printers.cc index e6d4001a..922a7b2d 100644 --- a/src/gmock-printers.cc +++ b/src/gmock-printers.cc @@ -242,6 +242,11 @@ static void PrintCharsAsStringTo(const char* begin, size_t len, ostream* os) { *os << "\""; } +// Prints a (const) char array of 'len' elements, starting at address 'begin'. +void UniversalPrintArray(const char* begin, size_t len, ostream* os) { + PrintCharsAsStringTo(begin, len, os); +} + // Prints the given array of wide characters to the ostream. // The array starts at *begin, the length is len, it may include L'\0' // characters and may not be null-terminated. |