///////////////////////////////////////////////////////////////////////////
| 395 | |
| 396 | //////////////////////////////////////////////////////////////////////////////// |
| 397 | void Hooks::assertNTasks(const std::vector<std::string>& input, unsigned int n, |
| 398 | const std::string& script) const { |
| 399 | if (input.size() != n) { |
| 400 | Context::getContext().error( |
| 401 | format(STRING_HOOK_ERROR_BAD_NUM, n, (int)input.size(), Path(script).name())); |
| 402 | throw 0; |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | //////////////////////////////////////////////////////////////////////////////// |
| 407 | void Hooks::assertSameTask(const std::vector<std::string>& input, const Task& task, |