C/C++ Hook technology for unit test framework