https://github.com/halide/Halide
Raw File
Tip revision: 65c26cba6a3eca2d08a0bccf113ca28746012cc3 authored by Steven Johnson on 26 August 2019, 21:49:31 UTC
Merge pull request #4174 from halide/srj-tidy
Tip revision: 65c26cb
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