public static void Push(IntPtr L, IEnumerator iter) { if (iter == null) { LuaDLL.lua_pushnil(L); } else { int iterMetatable = LuaStatic.GetIterMetatable(L); PushUserData(L, iter, iterMetatable); } }