(ctxt: *mut c_void, flag: u32, class: u32)
| 2432 | } |
| 2433 | |
| 2434 | extern "C" fn cb_flag_role<A>(ctxt: *mut c_void, flag: u32, class: u32) -> BNFlagRole |
| 2435 | where |
| 2436 | A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync, |
| 2437 | { |
| 2438 | let custom_arch = unsafe { &*(ctxt as *mut A) }; |
| 2439 | |
| 2440 | if let (Some(flag), class) = ( |
| 2441 | custom_arch.flag_from_id(FlagId(flag)), |
| 2442 | custom_arch.flag_class_from_id(FlagClassId(class)), |
| 2443 | ) { |
| 2444 | flag.role(class) |
| 2445 | } else { |
| 2446 | FlagRole::SpecialFlagRole |
| 2447 | } |
| 2448 | } |
| 2449 | |
| 2450 | extern "C" fn cb_flags_required_for_flag_cond<A>( |
| 2451 | ctxt: *mut c_void, |
nothing calls this directly
no test coverage detected