From ae44478b30d890fe0fb04022f44d474dcdcc3f9d Mon Sep 17 00:00:00 2001 From: Lassi Pulkkinen Date: Thu, 31 Oct 2024 03:11:21 +0200 Subject: Initial commit (import old repo) --- +android.ha | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 +android.ha (limited to '+android.ha') diff --git a/+android.ha b/+android.ha new file mode 100644 index 0000000..f8dc55b --- /dev/null +++ b/+android.ha @@ -0,0 +1,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(); +}; -- cgit v1.2.3