| 91 | } |
| 92 | |
| 93 | void |
| 94 | Instance::AddBundle(cripts::Bundle::Base *bundle) |
| 95 | { |
| 96 | for (auto &it : bundles) { |
| 97 | if (it->Name() == bundle->Name()) { |
| 98 | CFatal("[Instance]: Duplicate bundle %s", bundle->Name().c_str()); |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | bundles.push_back(bundle); |
| 103 | } |
| 104 | |
| 105 | } // namespace cripts |