Move bit-fields into new package.

This commit is contained in:
Stephen Chung
2022-01-03 23:10:20 +08:00
parent bccdf70521
commit 8961f36e8e
7 changed files with 215 additions and 196 deletions

View File

@@ -16,6 +16,10 @@ def_package! {
#[export_module]
mod core_functions {
#[rhai_fn(name = "!")]
pub fn not(x: bool) -> bool {
!x
}
#[rhai_fn(name = "tag", get = "tag", pure)]
pub fn get_tag(value: &mut Dynamic) -> INT {
value.tag() as INT