| 223 | } |
| 224 | |
| 225 | void OprRegistry::add_using_dynamic_loader( |
| 226 | Typeinfo* type, const std::string& name, const OprDumper& dumper) { |
| 227 | // dynamic oprs are implemented by mapping different opr types to the same |
| 228 | // persist_type_id |
| 229 | add({type, |
| 230 | dynamic_registry()->persist_type_id, |
| 231 | name, |
| 232 | dumper, |
| 233 | {}, |
| 234 | {}, |
| 235 | dynamic_registry()->unversioned_type_id}); |
| 236 | mgb_assert(type, "type must be not nullptr"); |
| 237 | OprRegistryV2::versioned_add( |
| 238 | {type, dynamic_registry_v2()->type_id, type->name, dumper, |
| 239 | dynamic_registry_v2()->loader, nullptr}, |
| 240 | CURRENT_VERSION, CURRENT_VERSION, true); |
| 241 | } |
| 242 | |
| 243 | #if MGB_ENABLE_DEBUG_UTIL |
| 244 | std::vector<std::vector<std::pair<size_t, std::string>>> OprRegistry:: |
nothing calls this directly
no test coverage detected