Files
swift-mirror/stdlib/public/SDK/OpenCL/OpenCL.swift
Ted Kremenek 62feb5c949 Change @availability to @available.
This came out of today's language review meeting.
The intent is to match #available with the attribute
that describes availability.

This is a divergence from Objective-C.

Swift SVN r28484
2015-05-12 20:06:13 +00:00

25 lines
946 B
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
@exported import OpenCL // Clang module
@available(OSX, introduced=10.7)
public func clSetKernelArgsListAPPLE(
kernel: cl_kernel, _ uint: cl_uint, _ args: CVarArgType...
) -> cl_int {
// The variable arguments are num_args arguments that are the following:
// cl_uint arg_indx,
// size_t arg_size,
// const void *arg_value,
return withVaList(args) { clSetKernelArgsVaListAPPLE(kernel, uint, $0) }
}