aboutsummaryrefslogtreecommitdiffstats
path: root/src/ports/SkDebug_brew.cpp
blob: b7ad3ef275965f38d91846dca6cd509541791776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* libs/corecg/SkDebug_brew.cpp
 *
 * Copyright 2009, The Android Open Source Project
 * Copyright 2009, Company 100, Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "SkTypes.h"

#ifdef SK_BUILD_FOR_BREW

static const size_t kBufferSize = 256;

#include <AEEStdLib.h>
#include <stdarg.h>

void SkDebugf(const char format[], ...) {
    char    buffer[kBufferSize + 1];
    va_list args;
    va_start(args, format);
    VSNPRINTF(buffer, kBufferSize, format, args);
    va_end(args);
    DBGPRINTF(buffer);
}

#endif SK_BUILD_FOR_BREW