luaur-vm 0.1.0

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::functions::lua_getfield::lua_getfield;
use crate::macros::lua_globalsindex::LUA_GLOBALSINDEX;
use core::ffi::{c_char, c_int};

#[inline(always)]
pub unsafe fn lua_getglobal(
    L: *mut crate::records::lua_state::lua_State,
    s: *const c_char,
) -> c_int {
    lua_getfield(L, LUA_GLOBALSINDEX, s)
}