luaur-vm 0.1.3

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
#[allow(non_snake_case)]
#[macro_export]
macro_rules! setbits {
    ($x:expr, $m:expr) => {
        // C promotes to int before |, then truncates on store
        $x = (($x as i32) | (($m) as i32)) as _
    };
}

pub use setbits;