blob: b7ad3ef275965f38d91846dca6cd509541791776 [file] [log] [blame]
reed@google.com3e1313c2011-02-07 20:00:40 +00001/* libs/corecg/SkDebug_brew.cpp
epoger@google.comfd03db02011-07-28 14:24:55 +00002 *
3 * Copyright 2009, The Android Open Source Project
4 * Copyright 2009, Company 100, Inc.
5 *
6 * Use of this source code is governed by a BSD-style license that can be
7 * found in the LICENSE file.
8 */
reed@google.com3e1313c2011-02-07 20:00:40 +00009
10#include "SkTypes.h"
11
12#ifdef SK_BUILD_FOR_BREW
13
14static const size_t kBufferSize = 256;
15
16#include <AEEStdLib.h>
17#include <stdarg.h>
18
19void SkDebugf(const char format[], ...) {
20 char buffer[kBufferSize + 1];
21 va_list args;
22 va_start(args, format);
23 VSNPRINTF(buffer, kBufferSize, format, args);
24 va_end(args);
25 DBGPRINTF(buffer);
26}
27
28#endif SK_BUILD_FOR_BREW