| Index: runtime/embedders/openglui/android/android_log.h
|
| ===================================================================
|
| --- runtime/embedders/openglui/android/android_log.h (revision 0)
|
| +++ runtime/embedders/openglui/android/android_log.h (revision 0)
|
| @@ -0,0 +1,17 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +#ifndef EMBEDDERS_OPENGLUI_ANDROID_ANDROID_LOG_H_
|
| +#define EMBEDDERS_OPENGLUI_ANDROID_ANDROID_LOG_H_
|
| +
|
| +#include <android/log.h>
|
| +
|
| +#define LOGX(LOG_LEVEL, ...) do { \
|
| + __android_log_print(LOG_LEVEL, "DartExt", __VA_ARGS__); \
|
| + } while (0)
|
| +#define LOGI(...) LOGX(ANDROID_LOG_INFO, __VA_ARGS__)
|
| +#define LOGE(...) LOGX(ANDROID_LOG_ERROR, __VA_ARGS__)
|
| +
|
| +#endif // EMBEDDERS_OPENGLUI_ANDROID_ANDROID_LOG_H_
|
| +
|
|
|