Debian Codegraph @

src/base/SkDebug.cpp

raw
1 /*
2 * Copyright 2006 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #include "include/private/base/SkDebug.h"
8
9 #include <cstdarg>
10
11 #include "include/private/base/SkAssert.h" // IWYU pragma: keep
12 #include "include/private/base/SkAttributes.h" // IWYU pragma: keep
13 #include "include/private/base/SkLog.h"
14
15 #if defined(SK_BUILD_FOR_GOOGLE3)
16 void SkDebugfForDumpStackTrace(const char* data, void* unused) {
17 SkDebugf("%s", data);
18 }
19 #endif
20
21 #if !defined(SkDebugf)
22 void SkDebugf(const char format[], ...) {
23 va_list args;
24 va_start(args, format);
25 SkLogVAList(SkLogPriority::kDebug, format, args);
26 va_end(args);
27 }
28 #endif