| 58 | } |
| 59 | |
| 60 | const OprRegistryV2* dynamic_registry_v2() { |
| 61 | static const OprRegistryV2* ret = nullptr; |
| 62 | if (ret) |
| 63 | return ret; |
| 64 | |
| 65 | auto id = MGB_HASH_STR("dynamic"); |
| 66 | OprRegistryV2::versioned_add( |
| 67 | {nullptr, id, {}, {}, dynamic_loader, {}}, CURRENT_VERSION, CURRENT_VERSION, |
| 68 | true); |
| 69 | ret = OprRegistryV2::versioned_find_by_id(id, CURRENT_VERSION); |
| 70 | mgb_assert(ret); |
| 71 | return ret; |
| 72 | } |
| 73 | |
| 74 | class _Init { |
| 75 | public: |
no outgoing calls
no test coverage detected