209
209
static int pairsmeta (lua_State *L, const char *method, int iszero,
211
212
if (luaL_getmetafield(L, 1, method) == LUA_TNIL) { /* no metamethod? */
213
213
lua_pushcfunction(L, iter); /* will return generator, */
214
214
lua_pushvalue(L, 1); /* state, */
215
215
if (iszero) lua_pushinteger(L, 0); /* and initial value */