luaL_checktype
void luaL_checktype (lua_State *L, int narg, int t);
Checks whether the function argument narg has type t.
narg
t