-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libcxx] Use __libcpp_verbose_abort for error messages
Rather than using the following sequence of calls: ``` fprintf(stderr, "..."); ::abort(); ``` We should use the following: ``` __libcpp_verbose_abort("...") ``` This simplifies the code and ensures the behavior is consistent across all call sites. Since `__libcpp_verbose_abort` is defined as weak, it also allows users to provide their implementation if they want to change the behavior which may be helpful in environments like embedded where error reporting usually requires special handling.
- Loading branch information
Showing
3 changed files
with
15 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters