luaur-vm 0.1.1

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::macros::luai_maxccalls::LUAI_MAXCCALLS;
use crate::records::match_state::MatchState;
use luaur_common::macros::luau_assert::LUAU_ASSERT;

#[allow(non_snake_case)]
pub(crate) fn reprepstate(ms: *mut MatchState) {
    unsafe {
        (*ms).level = 0;
        LUAU_ASSERT!((*ms).matchdepth == LUAI_MAXCCALLS as i32);
    }
}