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
11
12
//! Source: `VM/src/ldo.h` — #define saveci(L, p) ((char*)(p) - (char*)L->base_ci)
//! (hand-fixed: generated body dereferenced fields off a raw pointer without (* ))

#[allow(non_snake_case)]
#[macro_export]
macro_rules! saveci {
    ($L:expr, $p:expr) => {
        (($p as *const u8).offset_from((*$L).base_ci as *const u8)) as isize
    };
}

pub use saveci;