News for hackers. Stuff that matters.
Re:Exceptions in C with Longjmp and Setjmp by pagekalisedown on Sunday March 25, 2012 @02:45AM (#3751909)
A practical example of this is libpng:

http://www.libpng.org/pub/png/libpng-1.2.5-manual.html

Re:Exceptions in C with Longjmp and Setjmp by teraflop on Sunday March 25, 2012 @03:35AM (#3751981)
I wouldn't go so far as to call that "practical." It's a cute trick, but it becomes really annoying when trying to write libpng bindings for any environment other than plain C.
Re:Exceptions in C with Longjmp and Setjmp by wulczer on Sunday March 25, 2012 @03:10AM (#3751943)
PostgreSQL also uses longjmp to implement TRY/CATCH macros:

https://github.com/postgres/postgres/blob/master/src/include...

Re:Exceptions in C with Longjmp and Setjmp by hp on Sunday March 25, 2012 @09:42AM (#3752568)
as someone who has used libpng I'd describe it as an example of why this is a terrible idea.