cmMakefile: Out-of-line the cmMakefileCall.

This commit is contained in:
Stephen Kelly 2015-05-31 19:03:46 +02:00
parent db74ce5820
commit 00bfa04748
2 changed files with 14 additions and 9 deletions

View File

@ -5494,3 +5494,15 @@ cmMakefile::MacroPushPop::~MacroPushPop()
{
this->Makefile->PopMacroScope(this->ReportError);
}
cmMakefileCall::cmMakefileCall(cmMakefile* mf, const cmListFileContext& lfc,
cmExecutionStatus& status): Makefile(mf)
{
cmMakefile::CallStackEntry entry = {&lfc, &status};
this->Makefile->CallStack.push_back(entry);
}
cmMakefileCall::~cmMakefileCall()
{
this->Makefile->CallStack.pop_back();
}

View File

@ -1084,15 +1084,8 @@ class cmMakefileCall
public:
cmMakefileCall(cmMakefile* mf,
cmListFileContext const& lfc,
cmExecutionStatus& status): Makefile(mf)
{
cmMakefile::CallStackEntry entry = {&lfc, &status};
this->Makefile->CallStack.push_back(entry);
}
~cmMakefileCall()
{
this->Makefile->CallStack.pop_back();
}
cmExecutionStatus& status);
~cmMakefileCall();
private:
cmMakefile* Makefile;
};