diff --git a/common/streamdebug.cpp b/common/streamdebug.cpp index 638038c0002..37a69d73542 100644 --- a/common/streamdebug.cpp +++ b/common/streamdebug.cpp @@ -87,6 +87,11 @@ Debug &Debug::operator<<(const char *str) { return maybeSpace(); } +Debug &Debug::operator<<(char str) { + _stream->msg += str; + return maybeSpace(); +} + Debug &Debug::operator<<(int num) { _stream->msg += String::format("%d", num); return maybeSpace(); @@ -102,6 +107,11 @@ Debug &Debug::operator<<(bool value) { return maybeSpace(); } +Debug &Debug::operator<<(void *p) { + _stream->msg += String::format("%p", p); + return maybeSpace(); +} + Debug &Debug::operator=(const Debug &other) { _stream = other._stream; ++_stream->ref; diff --git a/common/streamdebug.h b/common/streamdebug.h index 48eb6a2d9f3..9b049ebe6d8 100644 --- a/common/streamdebug.h +++ b/common/streamdebug.h @@ -41,9 +41,11 @@ public: Debug &operator<<(const String &str); Debug &operator<<(const char *str); + Debug &operator<<(char str); Debug &operator<<(int number); Debug &operator<<(float number); Debug &operator<<(bool value); + Debug &operator<<(void *p); Debug &operator=(const Debug &other);