use crate::sys;
#[allow(missing_docs)]
#[derive(Debug)]
pub struct SBCommandInterpreter {
pub raw: sys::SBCommandInterpreterRef,
}
impl SBCommandInterpreter {}
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) };
}
}
impl From<sys::SBCommandInterpreterRef> for SBCommandInterpreter {
fn from(raw: sys::SBCommandInterpreterRef) -> SBCommandInterpreter {
SBCommandInterpreter { raw }
}
}
unsafe impl Send for SBCommandInterpreter {}
unsafe impl Sync for SBCommandInterpreter {}
#[cfg(feature = "graphql")]
graphql_object!(SBCommandInterpreter: crate::SBDebugger | &self | {});