Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkDebug_win.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2010 Google Inc.
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
10
11#if defined(SK_BUILD_FOR_WIN)
12
14
15#include <stdarg.h>
16#include <stdio.h>
17
18static const size_t kBufferSize = 2048;
19
20void SkDebugf(const char format[], ...) {
21 char buffer[kBufferSize + 1];
22 va_list args;
23
25 vfprintf(stderr, format, args);
26 va_end(args);
27 fflush(stderr); // stderr seems to be buffered on Windows.
28
30 vsnprintf(buffer, kBufferSize, format, args);
31 va_end(args);
32
33 OutputDebugStringA(buffer);
34}
35#endif // defined(SK_BUILD_FOR_WIN)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static const size_t kBufferSize
Definition SkString.cpp:27
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
static const uint8_t buffer[]
uint32_t uint32_t * format
va_start(args, format)
va_end(args)