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
13
14
15
16
use crate::enums::lua_type::lua_Type;
use crate::enums::lua_type::LUA_T_COUNT;
use crate::macros::markobject::markobject;
use crate::type_aliases::global_state::global_State;

pub fn markmt(g: *mut global_State) {
    let mut i = 0;
    while i < (LUA_T_COUNT as i32) {
        unsafe {
            if !(*g).mt[i as usize].is_null() {
                markobject!(g, (*g).mt[i as usize]);
            }
        }
        i += 1;
    }
}