luaur-vm 0.1.2

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[macro_export]
macro_rules! vm_protect {
    ($L:expr, $pc:expr, $base:expr, $x:expr) => {
        unsafe {
            (*(*$L).ci).savedpc = $pc;
            {
                $x;
            };
            $base = (*$L).base;
        }
    };
}

pub use vm_protect;