blob: f8dc55b41e8687bafb1dcb1413597bff2c3552f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use types::c;
@symbol("__android_log_write") fn _androlog(prio: int, tag: *const c::char, text: *const c::char) void;
fn androlog(prio: int, text: str) void = {
const text = c::fromstr(text);
defer free(text);
_androlog(prio, *(&"hacraft\0": **const c::char), text);
};
export @symbol("android_main") fn android_main() void = {
main();
};
|