Way Better Error Handling in C Using CException
Good error handling is necessary for any project of significance (i.e. all of them). However, error handling schemes tend to add tremendous complexity and ugliness to C code—especially in low-level programming where error cases are most prevalent.
The concept of an exception cleans up and simplifies error handling beautifully. Unfortunately, the C language has no native support for exceptions. CException adds a basic exception mechanism to C projects, providing many of the benefits of exceptions as present in higher level languages.