| 181 | } // anonymous namespace |
| 182 | |
| 183 | bool cmFunctionCommand(std::vector<std::string> const& args, |
| 184 | cmExecutionStatus& status) |
| 185 | { |
| 186 | if (args.empty()) { |
| 187 | status.SetError("called with incorrect number of arguments"); |
| 188 | return false; |
| 189 | } |
| 190 | |
| 191 | // create a function blocker |
| 192 | auto fb = cm::make_unique<cmFunctionFunctionBlocker>(); |
| 193 | cm::append(fb->Args, args); |
| 194 | status.GetMakefile().AddFunctionBlocker(std::move(fb)); |
| 195 | |
| 196 | return true; |
| 197 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…