void luaL_checktype (lua_State *L, int narg, int t);

Checks whether the function argument narg has type t.