aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-01-29 09:50:47 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-29 15:17:09 +0000
commit1c80e99dd5b23ebc3f10c768857a21887ab9f090 (patch)
tree491fa16698ffb07569718ef49cbb7ac8f9562374 /include
parent5effc281c70e111b3c5e9da9882c1981699af26f (diff)
Allow printf style var args for messages in REPORTER_ASSERT.
Remove REPORTER_ASSERT_MESSAGE. Change-Id: I6d00715901159c93e22d182fe24aac92b5fdbcf4 Reviewed-on: https://skia-review.googlesource.com/100361 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkString.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkString.h b/include/core/SkString.h
index b96efe730b..3d2373758d 100644
--- a/include/core/SkString.h
+++ b/include/core/SkString.h
@@ -272,6 +272,9 @@ private:
/// Creates a new string and writes into it using a printf()-style format.
SkString SkStringPrintf(const char* format, ...);
+/// This makes it easier to write a caller as a VAR_ARGS function where the format string is
+/// optional.
+static inline SkString SkStringPrintf() { return SkString(); }
// Specialized to take advantage of SkString's fast swap path. The unspecialized function is
// declared in SkTypes.h and called by SkTSort.