Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: runtime/vm/log.h

Issue 913603002: Add Log::VPrint and remove duplicated code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/disassembler.cc ('k') | runtime/vm/log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/log.h
diff --git a/runtime/vm/log.h b/runtime/vm/log.h
index 78f062bdf5913f5af52152e3e9f4205e2cef2f9c..f4c58e964cffb4b30c51dbf1a0186b8ab32d4d82 100644
--- a/runtime/vm/log.h
+++ b/runtime/vm/log.h
@@ -23,6 +23,9 @@ class Thread;
Isolate::Current()->Log()->Print(format, ##__VA_ARGS__)
#endif
+#define ISL_VPrint(format, args) \
+ Isolate::Current()->Log()->VPrint(format, args)
+
typedef void (*LogPrinter)(const char* str, ...);
class Log {
@@ -32,6 +35,8 @@ class Log {
// Append a formatted string to the log.
void Print(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
+ void VPrint(const char* format, va_list args);
+
// Flush and truncate the log. The log is flushed starting at cursor
// and truncated to cursor afterwards.
void Flush(const intptr_t cursor = 0);
« no previous file with comments | « runtime/vm/disassembler.cc ('k') | runtime/vm/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698