diff --git a/crates/byondapi-rs/src/typecheck_trait.rs b/crates/byondapi-rs/src/typecheck_trait.rs index fc78168..d38ece8 100644 --- a/crates/byondapi-rs/src/typecheck_trait.rs +++ b/crates/byondapi-rs/src/typecheck_trait.rs @@ -16,6 +16,6 @@ pub trait ByondTypeCheck { fn is_list(&self) -> bool; /// Check if this is a pointer. fn is_ptr(&self) -> bool; - /// Check if this is true-ish. - fn is_true(&self) -> bool; + //// Check if this is true-ish. + //fn is_true(&self) -> bool; } diff --git a/crates/byondapi-rs/src/value/mod.rs b/crates/byondapi-rs/src/value/mod.rs index 051837b..fadf956 100644 --- a/crates/byondapi-rs/src/value/mod.rs +++ b/crates/byondapi-rs/src/value/mod.rs @@ -55,8 +55,8 @@ impl ByondTypeCheck for ByondValue { is_pointer_shim(self) } - fn is_true(&self) -> bool { - // Safety: This operation only fails if our CByondValue is invalid, which cannot happen. - unsafe { byond().ByondValue_IsTrue(&self.0) } - } + // fn is_true(&self) -> bool { + // // Safety: This operation only fails if our CByondValue is invalid, which cannot happen. + // unsafe { byond().ByondValue_IsTrue(&self.0) } + // } } diff --git a/crates/byondapi-sys/headers/515-1620/byondapi.h b/crates/byondapi-sys/headers/515-1620/byondapi.h index 9bf1bc5..6d09582 100644 --- a/crates/byondapi-sys/headers/515-1620/byondapi.h +++ b/crates/byondapi-sys/headers/515-1620/byondapi.h @@ -200,7 +200,7 @@ DUNGPUB bool ByondValue_IsList(CByondValue const *v); * @param Pointer to CByondValue * @return Truthiness of value */ -bool ByondValue_IsTrue(CByondValue const *v); +//bool ByondValue_IsTrue(CByondValue const *v); /** * @param Pointer to CByondValue