(ctxt: *mut c_void, flag: u32)
| 2247 | } |
| 2248 | |
| 2249 | extern "C" fn cb_flag_name<A>(ctxt: *mut c_void, flag: u32) -> *mut c_char |
| 2250 | where |
| 2251 | A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync, |
| 2252 | { |
| 2253 | let custom_arch = unsafe { &*(ctxt as *mut A) }; |
| 2254 | |
| 2255 | match custom_arch.flag_from_id(flag.into()) { |
| 2256 | Some(flag) => BnString::into_raw(BnString::new(flag.name().as_ref())), |
| 2257 | None => BnString::into_raw(BnString::new("invalid_flag")), |
| 2258 | } |
| 2259 | } |
| 2260 | |
| 2261 | extern "C" fn cb_flag_write_name<A>(ctxt: *mut c_void, flag_write: u32) -> *mut c_char |
| 2262 | where |
nothing calls this directly
no test coverage detected