Skip to main content

check_type

Function check_type 

Source
pub fn check_type(
    state: &mut LuaState,
    arg: i32,
    t: LuaType,
) -> Result<(), LuaError>
Expand description

Assert that the value at arg has Lua type t; raise type error otherwise.

C: LUALIB_API void luaL_checktype(lua_State *L, int arg, int t)