luaur_vm/functions/
lua_isyieldable.rs1use crate::type_aliases::lua_state::lua_State;
2
3#[export_name = "luaur_lua_isyieldable"]
4pub unsafe fn lua_isyieldable(l: *mut lua_State) -> core::ffi::c_int {
5 if (*l).nCcalls <= (*l).baseCcalls {
6 1
7 } else {
8 0
9 }
10}