Re: Exceptions in C

On Mon, Nov 23, 2009 at 11:02:55AM -0000, Sad Clouds wrote:
> Before I start reinventing a wheel, does anyone know if there is
> already an API for doing this sort of thing, either in libc or some
> other library?
The only portable way to do this is setjmp/longjmp. Depending on how
often you want to enter a exception handling context ("try {}"), it can
be expensive though.
Joerg