| 267 | } |
| 268 | |
| 269 | bool Program::checkIfFilesChanged() |
| 270 | { |
| 271 | if (mpActiveVersion == nullptr) |
| 272 | { |
| 273 | // We never linked, so nothing really changed |
| 274 | return false; |
| 275 | } |
| 276 | |
| 277 | // Have any of the files we depend on changed? |
| 278 | for (auto& entry : mFileTimeMap) |
| 279 | { |
| 280 | auto& path = entry.first; |
| 281 | auto& modifiedTime = entry.second; |
| 282 | |
| 283 | if (modifiedTime != getFileModifiedTime(path)) |
| 284 | { |
| 285 | return true; |
| 286 | } |
| 287 | } |
| 288 | return false; |
| 289 | } |
| 290 | |
| 291 | const ref<const ProgramVersion>& Program::getActiveVersion() const |
| 292 | { |
no test coverage detected