mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +00:00
Make development more pleasant on MacOS Arm64
This commit is contained in:
parent
f7cad70da1
commit
0863427b3a
8 changed files with 90 additions and 10 deletions
|
@ -31,8 +31,8 @@ void __assert_fail(const char *expr, const char *file, int line) {
|
|||
char ibuf[12];
|
||||
sigset_t m = __sig_block();
|
||||
FormatInt32(ibuf, line);
|
||||
tinyprint(2, file, ":", ibuf, ": assert(", expr, ") failed (",
|
||||
program_invocation_short_name, " ",
|
||||
tinyprint(2, file, ":", ibuf, ": \e[31;1massert(", expr,
|
||||
") failed\e[0m (cosmoaddr2line ", program_invocation_name, " ",
|
||||
DescribeBacktrace(__builtin_frame_address(0)), ")\n", NULL);
|
||||
__sig_unblock(m);
|
||||
abort();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue