Function tlua::ffi::lua_type

source ·
pub unsafe extern "C" fn lua_type(
    state: *mut lua_State,
    index: c_int
) -> c_int
Expand description

Returns the type of the value in the given acceptable index, or LUA_TNONE for a non-valid index (that is, an index to an “empty” stack position). The types returned by lua_type are coded by the following constants: LUA_TNIL, LUA_TNUMBER, LUA_TBOOLEAN, LUA_TSTRING, LUA_TTABLE, LUA_TFUNCTION, LUA_TUSERDATA, LUA_TTHREAD, and LUA_TLIGHTUSERDATA. [-0, +0, -]