Little spec framework in C/C++