Exceptions in C 0.1.5 review

Download
by rbytes.net on

Exceptions in C implements fully-functional nested exceptions with these constructs: try except on throw Also, it allows to

License: GPL (GNU General Public License)
File size: 14K
Developer: Adomas Paltanavicius
0 stars award from rbytes.net

Exceptions in C implements fully-functional nested exceptions with these constructs:

try
except
on
throw

Also, it allows to define various datatypes for exception object (default is int, can be anything from char * to struct foo *).

Compiling and running

Precodey straight forward.

admp@sols:~/excc/example$ gcc exception.c -c
admp@sols:~/excc/example$ gcc exception.o example.c -o example
admp@sols:~/excc/example$ ./example
Usage: ./example A B
admp@sols:~/excc/example$ ./example 100 2
100/2=50
Program is going to end its short life.
admp@sols:~/excc/example$ ./example 100 0
Caught 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 0.1.5 keywords