use crate::sys;
#[allow(missing_docs)]
#[derive(Debug)]
pub struct SBCommandInterpreter {
pub raw: sys::SBCommandInterpreterRef,
}
impl SBCommandInterpreter {
pub(crate) fn wrap(raw: sys::SBCommandInterpreterRef) -> SBCommandInterpreter {
SBCommandInterpreter { raw }
}
}
impl Clone for SBCommandInterpreter {
fn clone(&self) -> SBCommandInterpreter {
SBCommandInterpreter {
raw: unsafe { sys::CloneSBCommandInterpreter(self.raw) },
}
}
}
impl Drop for SBCommandInterpreter {
fn drop(&mut self) {
unsafe { sys::DisposeSBCommandInterpreter(self.raw) };
}
}
unsafe impl Send for SBCommandInterpreter {}
unsafe impl Sync for SBCommandInterpreter {}