~sircmpwn/hare

hare/rt/+linux/abort.ha -rw-r--r-- 316 bytes
9ac59a70Eyal Sawady rt::clone: fix on aarch64 2 days ago
                                                                                
1
2
3
4
5
6
7
8
9
fn platform_abort(msg: str) void = {
	const prefix = "Abort: ";
	const linefeed = "\n";
	write(2, *(&prefix: **void): *const char, len(prefix)): void;
	write(2, *(&msg: **void): *const char, len(msg)): void;
	write(2, *(&linefeed: **void): *const char, 1): void;
	kill(getpid(), SIGABRT): void;
	for (true) void;
};