From 6571bf90361a4945161c0144de60ca1f5bd2dd39 Mon Sep 17 00:00:00 2001 From: Katherine Kiefer Date: Thu, 16 Nov 2023 18:57:51 +1100 Subject: [PATCH] disable isTrue for 1620 --- crates/byondapi-rs/src/typecheck_trait.rs | 4 ++-- crates/byondapi-rs/src/value/mod.rs | 8 ++++---- crates/byondapi-sys/headers/515-1620/byondapi.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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