Thursday, January 19, 2017

Exceptions Handling - Mechanics

I've posted (quite some time ago) a description of the try/catch blocks provided by clibutl. I guess it's now the time to look under the hood and see at the implementation. Below is the code, we'll go through it in the following sections. typedef struct utl_jb_s { jmp_buf jmp; struct...

Saturday, January 14, 2017

Tracing Tests

Having read an interesting blog article by Kartik Agaram about using traces for testing, I decided to add this capability to c-libutl. On top of the existing logging functions: logerror() for messages that report about critical failures; logwarning() for messages that report about potential issues...