mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
android: hide printf hijack for android logging behind define (#12269)
This commit is contained in:
parent
8273c0582b
commit
506924b01c
2
thirdparty/sokol/sokol_v.pre.h
vendored
2
thirdparty/sokol/sokol_v.pre.h
vendored
@ -1,3 +1,4 @@
|
|||||||
|
#if defined(V_ANDROID_LOG_PRINT)
|
||||||
#if defined(__ANDROID__)
|
#if defined(__ANDROID__)
|
||||||
// Adapted from https://stackoverflow.com/a/196018/1904615
|
// Adapted from https://stackoverflow.com/a/196018/1904615
|
||||||
#define V_ANDROID_LOG_STR_VALUE(arg) #arg
|
#define V_ANDROID_LOG_STR_VALUE(arg) #arg
|
||||||
@ -17,3 +18,4 @@
|
|||||||
#define printf(...) __android_log_print(ANDROID_LOG_INFO, V_ANDROID_LOG_TAG_NAME, __VA_ARGS__)
|
#define printf(...) __android_log_print(ANDROID_LOG_INFO, V_ANDROID_LOG_TAG_NAME, __VA_ARGS__)
|
||||||
#define fprintf(a, ...) __android_log_print(ANDROID_LOG_ERROR, V_ANDROID_LOG_TAG_NAME, __VA_ARGS__)
|
#define fprintf(a, ...) __android_log_print(ANDROID_LOG_ERROR, V_ANDROID_LOG_TAG_NAME, __VA_ARGS__)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user