With Pragmas

With #pragma CTC APPEND, the saving of coverage data is triggered.

This pragma can be put everywhere in the code where an executable statement can reside. It maps to a call to the run-time library of Testwell CTC++. Whenever it is executed, the execution counters that are collected at the time are saved to the data file. If the data file is saved many times during the program execution, it does not cause bias to the counters. In this arrangement, some source files need to be modified.