luaur_vm/functions/markmt.rs
1use crate::enums::lua_type::lua_Type;
2use crate::enums::lua_type::LUA_T_COUNT;
3use crate::macros::markobject::markobject;
4use crate::type_aliases::global_state::global_State;
5
6pub fn markmt(g: *mut global_State) {
7 let mut i = 0;
8 while i < (LUA_T_COUNT as i32) {
9 unsafe {
10 if !(*g).mt[i as usize].is_null() {
11 markobject!(g, (*g).mt[i as usize]);
12 }
13 }
14 i += 1;
15 }
16}