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 8 #include "include/private/base/SkDebug.h" 9 #include "include/private/base/SkFeatures.h" 10 #include "include/private/base/SkLoadUserConfig.h" 11 12 #if !defined(SK_BUILD_FOR_WIN) && !defined(SK_BUILD_FOR_ANDROID) 13 14 #include <stdarg.h> 15 #include <stdio.h> 16 SkDebugf(const char format[],...)17void SkDebugf(const char format[], ...) { 18 va_list args; 19 va_start(args, format); 20 #pragma GCC diagnostic push 21 #pragma GCC diagnostic ignored "-Wformat-nonliteral" 22 vfprintf(stderr, format, args); 23 #pragma GCC diagnostic pop 24 va_end(args); 25 } 26 #endif // !defined(SK_BUILD_FOR_WIN) && !defined(SK_BUILD_FOR_ANDROID) 27