Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/openxr/src/common/android_logging.h
9903 views
1
// Copyright (c) 2018-2025 The Khronos Group Inc.
2
//
3
// SPDX-License-Identifier: Apache-2.0 OR MIT
4
//
5
// Utility macros for Android logging.
6
7
#pragma once
8
9
#ifdef XR_USE_PLATFORM_ANDROID
10
#include <android/log.h>
11
12
#if !defined(LOG_TAG)
13
#error "LOG_TAG must be defined before including android_logging.h"
14
#endif
15
16
#define ALOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
17
#define ALOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
18
#define ALOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
19
#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
20
#define ALOGF(...) __android_log_print(ANDROID_LOG_FATAL, LOG_TAG, __VA_ARGS__)
21
22
#endif // XR_USE_PLATFORM_ANDROID
23
24