Flutter Engine
The Flutter Engine
SkDebug.h
Go to the documentation of this file.
1/*
2 * Copyright 2022 Google LLC
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
8#ifndef SkDebug_DEFINED
9#define SkDebug_DEFINED
10
13#include "include/private/base/SkLoadUserConfig.h" // IWYU pragma: keep
14
15#if !defined(SkDebugf)
16 void SK_SPI SkDebugf(const char format[], ...) SK_PRINTF_LIKE(1, 2);
17#endif
18
19#if defined(SK_DEBUG)
20 #define SkDEBUGCODE(...) __VA_ARGS__
21 #define SkDEBUGF(...) SkDebugf(__VA_ARGS__)
22#else
23 #define SkDEBUGCODE(...)
24 #define SkDEBUGF(...)
25#endif
26
27#endif
#define SK_SPI
Definition: SkAPI.h:41
#define SK_PRINTF_LIKE(A, B)
Definition: SkAttributes.h:52
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
uint32_t uint32_t * format