mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
android: enable custom (e)println output via android log system (#8135)
This commit is contained in:
@@ -936,13 +936,6 @@ fn (mut app App) showfps() {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Move this somewhere else (vlib?) once Android support is merged
|
||||
$if android {
|
||||
#include <android/log.h>
|
||||
#define LOG_TAG "v_logcat_test"
|
||||
#define printf(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
||||
#define fprintf(a, ...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
||||
}
|
||||
fn main() {
|
||||
mut app := &App{}
|
||||
app.new_game()
|
||||
|
||||
Reference in New Issue
Block a user