As mentioned by the title, I would like to achieve something like this:
void my_exit(int status)
{
#ifdef _GCOV
__gcov_flush();
#endif
_exit(status);
}
But I do not know if there is a _GCOV
(or something similar) defined when compiling with --coverage
. Any idea will be appreciated!