blob: 99061672e723d65401818f5abeac9d988394d73f [file] [log] [blame]
Dan Sinclaira03c3432016-03-16 15:35:20 -04001// 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
Dan Sinclair900323a2016-03-17 13:27:04 -04009#include <stdarg.h>
Dan Sinclaira03c3432016-03-16 15:35:20 -040010#include <stdio.h>
11
12#include "third_party/skia/include/core/SkTypes.h"
13
14void SkDebugf_FileLine(const char* file,
15 int line,
16 bool fatal,
17 const char* format,
18 ...) {
19 va_list ap;
20 va_start(ap, format);
21
22 fprintf(stderr, "%s:%d ", file, line);
23 vfprintf(stderr, format, ap);
24 va_end(ap);
25}