#![allow(non_camel_case_types, non_snake_case, non_upper_case_globals)]
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
#[cfg(target_os = "macos")]
include!("generated_constants/wx_osx_constants.rs");
#[cfg(target_os = "windows")]
include!("generated_constants/wx_msw_constants.rs");
#[cfg(target_os = "linux")]
include!("generated_constants/wx_gtk_constants.rs");
#[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))]
compile_error!("Target OS not supported by pre-generated constants. Please add a constants file for this OS.");
mod logging4c;
use std::cell::RefCell;
use std::os::raw::c_void;
type WindowUserData = ();
#[unsafe(no_mangle)]
#[allow(clippy::not_unsafe_ptr_arg_deref)]
pub extern "C" fn drop_rust_refcell_box(user_data_ptr: *mut c_void) {
if !user_data_ptr.is_null() {
let _boxed_refcell: Box<RefCell<WindowUserData>> =
unsafe { Box::from_raw(user_data_ptr as *mut RefCell<WindowUserData>) };
} else {
}
}
#[unsafe(no_mangle)]
#[allow(clippy::not_unsafe_ptr_arg_deref)]
pub extern "C" fn wxd_Variant_Free_Rust_String(str_ptr: *mut std::os::raw::c_char) {
if !str_ptr.is_null() {
unsafe {
let _cstring = std::ffi::CString::from_raw(str_ptr);
}
}
}