mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 14:51:51 -04:00
JLI load: Use Android log instead of printf
This commit is contained in:
parent
ae513fdd11
commit
04503d0a76
@ -28,7 +28,7 @@ android {
|
|||||||
multiDexEnabled true //important
|
multiDexEnabled true //important
|
||||||
|
|
||||||
ndk {
|
ndk {
|
||||||
abiFilters "armeabi-v7a" , "x86" // , "x86_64" , "arm64-v8a"
|
abiFilters "armeabi-v7a" , "x86" , "x86_64" , "arm64-v8a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,19 +7,11 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
#ifdef __ANDROID__
|
#define LOGE(...) __android_log_print(ANDROID_LOG_SILENT, TAG, __VA_ARGS__)
|
||||||
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__)
|
#define LOGW(...) __android_log_print(ANDROID_LOG_SILENT, TAG, __VA_ARGS__)
|
||||||
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, TAG, __VA_ARGS__)
|
#define LOGI(...) __android_log_print(ANDROID_LOG_SILENT, TAG, __VA_ARGS__)
|
||||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, TAG, __VA_ARGS__)
|
#define LOGD(...) __android_log_print(ANDROID_LOG_SILENT, TAG, __VA_ARGS__)
|
||||||
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__)
|
|
||||||
#else
|
|
||||||
*/
|
|
||||||
#define LOGE(...) printf(__VA_ARGS__)
|
|
||||||
#define LOGW(...) printf(__VA_ARGS__)
|
|
||||||
#define LOGI(...) printf(__VA_ARGS__)
|
|
||||||
#define LOGD(...) printf(__VA_ARGS__)
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user