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 11 #include "include/private/base/SkAPI.h" 12 #include "include/private/base/SkAttributes.h" 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 28