Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

paul-j-lucas/c_exception

Repository files navigation

C Exception

Introduction

C Exception is a library that implements C++-like exceptions in C using syntax as close as possible to C++. In addition to try, catch, and throw, it also offers finally since C lacks destructors. While the library works, it has stringent requirements and several restrictions. See the developer documentation for details.

See also setjmp(), longjmp(), and Exception Handling in C.

Installation

The git repository contains only the necessary source code. Things like configure are derived sources and should not be included in repositories. If you have autoconf, automake, and m4 installed, you can generate configure yourself by doing:

./bootstrap

Then follow the generic installation instructions given in INSTALL.

If you would like to generate the developer documentation, you will also need Doxygen; then do:

make doc                            # or: make docs

Building with the Library

When compiling your own code that uses the library, you should compile with the following options:

-Wno-dangling-else -Wno-shadow

(or equivalent for your compiler) to suppress warnings.

Paul J. Lucas
San Francisco Bay Area, California, USA
13 October 2023

About

Library for implementing C++-like exceptions in C.

Resources

License

Stars

Watchers

Forks

Packages

No packages published