From cdf9092d03a9870ecf8418d77dd7ec0e17357a26 Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 6 Feb 2024 13:47:04 -0600 Subject: add function set_can_return_auto and set_can_return_user --- rust/src/function.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'rust/src/function.rs') diff --git a/rust/src/function.rs b/rust/src/function.rs index 7f9ad862..e3b586ae 100644 --- a/rust/src/function.rs +++ b/rust/src/function.rs @@ -179,6 +179,16 @@ impl Function { } } + pub fn set_can_return_auto(&self, can_return: Conf) { + let mut raw = BNBoolWithConfidence::from(can_return); + unsafe { BNSetAutoFunctionCanReturn(self.handle, &mut raw) } + } + + pub fn set_can_return_user(&self, can_return: Conf) { + let mut raw = BNBoolWithConfidence::from(can_return); + unsafe { BNSetAutoFunctionCanReturn(self.handle, &mut raw) } + } + pub fn comment_at(&self, addr: u64) -> BnString { unsafe { BnString::from_raw(BNGetCommentForAddress(self.handle, addr)) } } -- cgit v1.3.1