To use it, place the file selftest.hpp onto your project include path.
Then follow the instructions within the file itself.
You might also like to look at the demo for an example.
This project also contains a unit test "testception" and a basic Makefile for running the tests and demo program in *nix environments.
This software is made available under the MIT License.