https://github.com/halide/Halide
Raw File
Tip revision: e3bafacc396c8e2b808ad36e5f2eb493f8dcdaf8 authored by Alex Reinking on 12 October 2022, 12:22:00 UTC
Last fixup before merge
Tip revision: e3bafac
android_io.cpp
#include "HalideRuntime.h"

extern "C" {

#define ANDROID_LOG_INFO 4

extern int __android_log_print(int, const char *, const char *, ...);

WEAK void halide_default_print(void *user_context, const char *str) {
    __android_log_print(ANDROID_LOG_INFO, "halide", "%s", str);
}
}
back to top