luaur-vm 0.1.0

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::macros::check_exp::check_exp;

#[allow(non_snake_case)]
#[macro_export]
macro_rules! fastmemcpy {
    ($dst:expr, $src:expr, $size:expr, $sizefast:expr) => {
        $crate::macros::check_exp::check_exp!(($size) <= $sizefast, unsafe {
            core::ptr::copy_nonoverlapping($src as *const u8, $dst as *mut u8, $sizefast as usize)
        })
    };
}

pub use fastmemcpy;