| 451 | } |
| 452 | |
| 453 | cmMakefile* cmMakefile::CallRAII::Detach() |
| 454 | { |
| 455 | assert(this->Makefile); |
| 456 | |
| 457 | this->Makefile->ExecutionStatusStack.pop_back(); |
| 458 | --this->Makefile->RecursionDepth; |
| 459 | this->Makefile->Backtrace = this->Makefile->Backtrace.Pop(); |
| 460 | |
| 461 | auto* const mf = this->Makefile; |
| 462 | this->Makefile = nullptr; |
| 463 | return mf; |
| 464 | } |
| 465 | |
| 466 | // Helper class to make sure the call stack is valid. |
| 467 | class cmMakefile::CallScope : public CallRAII |
no test coverage detected