Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility function for handling fatal errors #41

Merged
merged 6 commits into from
Apr 19, 2020
Merged

Utility function for handling fatal errors #41

merged 6 commits into from
Apr 19, 2020

Conversation

uno20001
Copy link
Contributor

This pull requests introduces a new function (fatal()), and two macros (FATAL_IF(), and FATAL_IF0()) which can be used to (conditionally in the case of the macros) print a formatted error message that's prefixed with fatal error: and exit the program with EXIT_FAILURE status code. The error messages have also been rewritten to some degree and converted to lower case.

@Rudde Rudde merged commit a0c182f into pobrn:master Apr 19, 2020
@uno20001 uno20001 deleted the fatal_error_utility branch April 19, 2020 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants