diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-07-25 14:52:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:19 (GMT) |
commit | 0005e17d504fd50ebaec3860f4f213765e815b13 (patch) | |
tree | 8e29587d7fddab24967f203d8fb00d78c4b4ccfb /Source/cmContinueCommand.cxx | |
parent | 01949a02df765cc4ad273b6163622f55d4f569ca (diff) | |
download | CMake-0005e17d504fd50ebaec3860f4f213765e815b13.zip CMake-0005e17d504fd50ebaec3860f4f213765e815b13.tar.gz CMake-0005e17d504fd50ebaec3860f4f213765e815b13.tar.bz2 |
cmCommand refactor: cmContinueCommand
Diffstat (limited to 'Source/cmContinueCommand.cxx')
-rw-r--r-- | Source/cmContinueCommand.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Source/cmContinueCommand.cxx b/Source/cmContinueCommand.cxx index 48f1f41..bb63dff 100644 --- a/Source/cmContinueCommand.cxx +++ b/Source/cmContinueCommand.cxx @@ -8,13 +8,14 @@ #include "cmSystemTools.h" // cmContinueCommand -bool cmContinueCommand::InitialPass(std::vector<std::string> const& args, - cmExecutionStatus& status) +bool cmContinueCommand(std::vector<std::string> const& args, + cmExecutionStatus& status) { - if (!this->Makefile->IsLoopBlock()) { - this->Makefile->IssueMessage(MessageType::FATAL_ERROR, - "A CONTINUE command was found outside of a " - "proper FOREACH or WHILE loop scope."); + if (!status.GetMakefile().IsLoopBlock()) { + status.GetMakefile().IssueMessage( + MessageType::FATAL_ERROR, + "A CONTINUE command was found outside of a " + "proper FOREACH or WHILE loop scope."); cmSystemTools::SetFatalErrorOccured(); return true; } @@ -22,9 +23,10 @@ bool cmContinueCommand::InitialPass(std::vector<std::string> const& args, status.SetContinueInvoked(); if (!args.empty()) { - this->Makefile->IssueMessage(MessageType::FATAL_ERROR, - "The CONTINUE command does not accept any " - "arguments."); + status.GetMakefile().IssueMessage( + MessageType::FATAL_ERROR, + "The CONTINUE command does not accept any " + "arguments."); cmSystemTools::SetFatalErrorOccured(); return true; } |