blob: 7ffcb005ddfe8a2c3d8e5c958cb8a52eb636b104 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Export constants functions
pub use constants::*;
#[unsafe(no_mangle)]
#[allow(nonstandard_style)]
pub extern "C" fn JV_FreeString(ptr: *mut libc::c_char) {
if ptr.is_null() {
return;
}
unsafe {
drop(std::ffi::CString::from_raw(ptr));
}
}
|