OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This file provides integration with Google-style "base/logging.h" assertions |
| 6 // for Skia SkASSERT. If you don't want this, you can link with another file |
| 7 // that provides integration with the logging of your choice. |
| 8 |
| 9 #include <stdio.h> |
| 10 |
| 11 #include "third_party/skia/include/core/SkTypes.h" |
| 12 |
| 13 void SkDebugf_FileLine(const char* file, |
| 14 int line, |
| 15 bool fatal, |
| 16 const char* format, |
| 17 ...) { |
| 18 va_list ap; |
| 19 va_start(ap, format); |
| 20 |
| 21 fprintf(stderr, "%s:%d ", file, line); |
| 22 vfprintf(stderr, format, ap); |
| 23 va_end(ap); |
| 24 } |
OLD | NEW |