Welcome
Welcome to TerminalSpin.
This site contains information about programming C applications on Linux with PFL, a lightweight, full-featured, object framework for Linux.
Updates
Over the past week or so, I've been thinking about exception handling. I'd been putting it off, firstly because it was working OK and secondly because it's very intertwined with all the other code.
The problem was that I wasn't happy with it. It was to my mind, unnecessarily expensive in processing to raise an exception when quite often the existence of an exception was just used as a boolean flag and the stack trace not used.
So I've rewritten it to be much more lightweight, using no mallocs or stack-unwinds. It still produces a stacktrace and has hierarchical exceptions but now just uses an array in automatic storage.
Also, it was a huge pain to go through all the code and change all the exception usage. So, I've wrapped the functionality in a set of abstract macros, which encapsulate the internal implementation. If the internals need to be changed in future, it shouldn't require all that refactoring.
I've written up the new approach in the PFL Exception Handling link below.
Overview documents
Check back soon.