reed@google.com | 3e1313c | 2011-02-07 20:00:40 +0000 | [diff] [blame] | 1 | /* libs/corecg/SkDebug_brew.cpp |
epoger@google.com | fd03db0 | 2011-07-28 14:24:55 +0000 | [diff] [blame] | 2 | * |
| 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.com | 3e1313c | 2011-02-07 20:00:40 +0000 | [diff] [blame] | 9 | |
| 10 | #include "SkTypes.h" |
| 11 | |
| 12 | #ifdef SK_BUILD_FOR_BREW |
| 13 | |
| 14 | static const size_t kBufferSize = 256; |
| 15 | |
| 16 | #include <AEEStdLib.h> |
| 17 | #include <stdarg.h> |
| 18 | |
| 19 | void 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 |