llvm-project/libc/spec
Alex Brachet b47c9f535c [libc] Add initial assert definition
Summary: This patch adds a temporary `__assert_fail` and `assert` definition to make it available to internal llvm libc code. `__assert_fail` writes to fd 2 directly instead of `stderr`, using SYS_write. I have not put it in its own linux directory because this is temporary and it should be using stdio's api in the future. It does not currently print out the line number (although we could do that by stringifying `__LINE__` if reviewers wish).

Reviewers: sivachandra, gchatelet, PaulkaToast

Reviewed By: sivachandra

Subscribers: mgorny, MaskRay, tschuett, libc-commits

Differential Revision: https://reviews.llvm.org/D75420
2020-03-11 23:45:58 -04:00
..
linux.td [libc] Add ability to generate enum types/values to HdrGen. 2020-02-28 23:27:32 -08:00
posix.td [libc] Add sigprocmask 2020-03-02 03:47:21 -05:00
spec.td [libc] Create abort and _Exit 2020-03-05 14:21:18 -05:00
stdc.td [libc] Add initial assert definition 2020-03-11 23:45:58 -04:00