| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #ifndef BIN_LOG_H_ |
| 6 #define BIN_LOG_H_ |
| 7 |
| 8 #include <stdarg.h> |
| 9 |
| 10 #include "platform/globals.h" |
| 11 |
| 12 class Log { |
| 13 public: |
| 14 // Print formatted output for debugging. |
| 15 static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2) { |
| 16 va_list args; |
| 17 va_start(args, format); |
| 18 VPrint(format, args); |
| 19 va_end(args); |
| 20 } |
| 21 |
| 22 static void VPrint(const char* format, va_list args); |
| 23 |
| 24 static void PrintErr(const char* format, ...) PRINTF_ATTRIBUTE(1, 2) { |
| 25 va_list args; |
| 26 va_start(args, format); |
| 27 VPrintErr(format, args); |
| 28 va_end(args); |
| 29 } |
| 30 |
| 31 static void VPrintErr(const char* format, va_list args); |
| 32 |
| 33 DISALLOW_ALLOCATION(); |
| 34 DISALLOW_IMPLICIT_CONSTRUCTORS(Log); |
| 35 }; |
| 36 |
| 37 #endif // BIN_LOG_H_ |
| OLD | NEW |