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
use crate::type_aliases::lua_state::lua_State;

#[no_mangle]
pub unsafe fn lua_isyieldable(l: *mut lua_State) -> core::ffi::c_int {
    if (*l).nCcalls <= (*l).baseCcalls {
        1
    } else {
        0
    }
}