Expose dmd_trace_off() function

This commit is contained in:
Seth Morabito 2022-08-25 16:11:27 -07:00
parent db72fc155b
commit 9f945b0b4f
1 changed files with 11 additions and 0 deletions

View File

@ -195,6 +195,17 @@ pub unsafe fn dmd_trace_on(file_name: *const c_char) -> c_int {
}
}
#[no_mangle]
pub fn dmd_trace_off() -> c_int {
match DMD.lock() {
Ok(mut dmd) => {
dmd.trace_off();
SUCCESS
}
Err(_) => ERROR,
}
}
#[no_mangle]
fn dmd_step_loop(steps: usize) -> c_int {
match DMD.lock() {