(ctxt: *mut c_void, stack: u32)
| 2758 | } |
| 2759 | |
| 2760 | extern "C" fn cb_reg_stack_name<A>(ctxt: *mut c_void, stack: u32) -> *mut c_char |
| 2761 | where |
| 2762 | A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync, |
| 2763 | { |
| 2764 | let custom_arch = unsafe { &*(ctxt as *mut A) }; |
| 2765 | |
| 2766 | match custom_arch.register_stack_from_id(RegisterStackId(stack)) { |
| 2767 | Some(stack) => BnString::into_raw(BnString::new(stack.name().as_ref())), |
| 2768 | None => BnString::into_raw(BnString::new("invalid_reg_stack")), |
| 2769 | } |
| 2770 | } |
| 2771 | |
| 2772 | extern "C" fn cb_reg_stacks<A>(ctxt: *mut c_void, count: *mut usize) -> *mut u32 |
| 2773 | where |
nothing calls this directly
no test coverage detected