Skip to content

Commit 2ccf991

Browse files
authored
add num_recursive_calls to FFI (#189)
1 parent 01a7723 commit 2ccf991

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ffi.rs

+7
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,13 @@ pub unsafe extern "C" fn print_bdd(bdd: *mut BddPtr<'static>) -> *const c_char {
254254
p
255255
}
256256

257+
#[no_mangle]
258+
#[allow(clippy::missing_safety_doc)]
259+
pub unsafe extern "C" fn bdd_num_recursive_calls(builder: *mut RsddBddBuilder) -> usize {
260+
let builder = robdd_builder_from_ptr(builder);
261+
builder.num_recursive_calls()
262+
}
263+
257264
#[no_mangle]
258265
#[allow(clippy::missing_safety_doc)]
259266
pub unsafe extern "C" fn bdd_wmc(

0 commit comments

Comments
 (0)