SkDebug_stdio.cpp 518 B

1234567891011121314151617181920
  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/core/SkTypes.h"
  8. #if !defined(SK_BUILD_FOR_WIN) && !defined(SK_BUILD_FOR_ANDROID)
  9. #include <stdarg.h>
  10. #include <stdio.h>
  11. void SkDebugf(const char format[], ...) {
  12. va_list args;
  13. va_start(args, format);
  14. vfprintf(stderr, format, args);
  15. va_end(args);
  16. }
  17. #endif//!defined(SK_BUILD_FOR_WIN) && !defined(SK_BUILD_FOR_ANDROID)