(ctxt: *mut c_void, class: u32)
| 2271 | } |
| 2272 | |
| 2273 | extern "C" fn cb_semantic_flag_class_name<A>(ctxt: *mut c_void, class: u32) -> *mut c_char |
| 2274 | where |
| 2275 | A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync, |
| 2276 | { |
| 2277 | let custom_arch = unsafe { &*(ctxt as *mut A) }; |
| 2278 | |
| 2279 | match custom_arch.flag_class_from_id(class.into()) { |
| 2280 | Some(class) => BnString::into_raw(BnString::new(class.name().as_ref())), |
| 2281 | None => BnString::into_raw(BnString::new("invalid_flag_class")), |
| 2282 | } |
| 2283 | } |
| 2284 | |
| 2285 | extern "C" fn cb_semantic_flag_group_name<A>(ctxt: *mut c_void, group: u32) -> *mut c_char |
| 2286 | where |
nothing calls this directly
no test coverage detected