lua_isnoneornil
if (lua_isnoneornil(L, narg)) {
#define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
if (lua_isnoneornil(L, 2)) { /* standard conversion */
if (!lua_isnoneornil(L, 2)) /* is there a 2nd argument? */