Add in an assert
family of functions (#3132)
* Add in an `assert` family of functions This will check values at runtime, allowing for users to ensure computed values do not violate static constraints. Signed-off-by: Paul R. Tagliamonte <paul@zoo.dev>
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
//! Functions implemented for language execution.
|
||||
|
||||
pub mod args;
|
||||
pub mod assert;
|
||||
pub mod chamfer;
|
||||
pub mod convert;
|
||||
pub mod extrude;
|
||||
@ -118,6 +119,11 @@ lazy_static! {
|
||||
Box::new(crate::std::math::Ln),
|
||||
Box::new(crate::std::math::ToDegrees),
|
||||
Box::new(crate::std::math::ToRadians),
|
||||
Box::new(crate::std::assert::Assert),
|
||||
Box::new(crate::std::assert::AssertLessThan),
|
||||
Box::new(crate::std::assert::AssertGreaterThan),
|
||||
Box::new(crate::std::assert::AssertLessThanOrEq),
|
||||
Box::new(crate::std::assert::AssertGreaterThanOrEq),
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user