Skip to main content

check_stack

Function check_stack 

Source
pub fn check_stack(
    state: &mut LuaState,
    space: i32,
    msg: Option<&[u8]>,
) -> Result<(), LuaError>
Expand description

Ensure the stack has at least space extra slots; raise on failure.

C: LUALIB_API void luaL_checkstack(lua_State *L, int space, const char *msg)