Exceptions in CExceptions in C implements powerful and customizable exceptions for the C programming language. | |
Download |
Exceptions in C Ranking & Summary
Advertisement
- License:
- GPL
- Price:
- FREE
- Publisher Name:
- Adomas Paltanavicius
- Publisher web site:
- http://adomas.org/pynumwords/
Exceptions in C Tags
Exceptions in C Description
Exceptions in C implements powerful and customizable exceptions for the C programming language. Exceptions in C implements fully-functional nested exceptions with these constructs:tryexceptonthrowAlso, it allows to define various datatypes for exception object (default is int, can be anything from char * to struct foo *).Compiling and runningPrecodey straight forward.admp@sols:~/excc/example$ gcc exception.c -cadmp@sols:~/excc/example$ gcc exception.o example.c -o exampleadmp@sols:~/excc/example$ ./exampleUsage: ./example A Badmp@sols:~/excc/example$ ./example 100 2100/2=50Program is going to end its short life.admp@sols:~/excc/example$ ./example 100 0Caught up division by zero (100/0).Program is going to end its short life.Attributions:Felix Ogg for inspiring me to write finally, also detailed feedbacks and ideas for documentation (diagrams too!). Though I haven't completed that - for almost a year now; I am not sure I ever will.
Exceptions in C Related Software