* Metamethod: __pairs, returning 1st upvalue as iterator */
| 1134 | * Metamethod: __pairs, returning 1st upvalue as iterator |
| 1135 | */ |
| 1136 | static int meta_pairs(lua_State *state) |
| 1137 | { |
| 1138 | luaL_checkany(state, 1); |
| 1139 | lua_pushvalue(state, lua_upvalueindex(1)); |
| 1140 | lua_pushvalue(state, 1); |
| 1141 | lua_pushnil(state); |
| 1142 | return 3; |
| 1143 | } |
| 1144 | |
| 1145 | /** |
| 1146 | * Make a metatable with most common fields, and an empty table for UPVAL_FIELDTABLE. |
nothing calls this directly
no test coverage detected