| 33 | } |
| 34 | |
| 35 | LocationScope::LocationScope(const char* file, int line, const char* function) : |
| 36 | file(file), function(function), line(line) |
| 37 | { |
| 38 | output_scope = OnlineOptions::singleton.has_option("location_scope"); |
| 39 | time_scope = OnlineOptions::singleton.has_option("location_time"); |
| 40 | if (output_scope) |
| 41 | cerr << "call to " << file << ":" << line << ", " << function |
| 42 | << endl; |
| 43 | else |
| 44 | CodeLocations::maybe_output(file, line, function); |
| 45 | if (time_scope) |
| 46 | timer.start(); |
| 47 | } |
| 48 | |
| 49 | LocationScope::~LocationScope() |
| 50 | { |
nothing calls this directly
no test coverage detected