Skip to content

Commit

Permalink
disable isTrue for 1620
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Nov 16, 2023
1 parent 1880f8d commit 6571bf9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions crates/byondapi-rs/src/typecheck_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
8 changes: 4 additions & 4 deletions crates/byondapi-rs/src/value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
// }
}
2 changes: 1 addition & 1 deletion crates/byondapi-sys/headers/515-1620/byondapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6571bf9

Please sign in to comment.