luaur-vm 0.1.0

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use crate::functions::lua_objlen::lua_objlen;

#[allow(non_snake_case)]
pub unsafe extern "C" fn lua_strlen(
    L: *mut crate::records::lua_state::lua_State,
    idx: core::ffi::c_int,
) -> usize {
    lua_objlen(L, idx) as usize
}