Files
swift-mirror/stdlib/public/SDK/SceneKit/Thunks.mm
Dmitri Hrybenko 1e5dba8085 SceneKit overlay: add a generic overlay for -[SCNSceneSource entryWithIdentifier:withClass:]
This change depends on a coordinated SceneKit change which makes the
original method unavailable to avoid ambiguity.  The API also requires a
data file, so no tests yet.

rdar://20384835

Swift SVN r27319
2015-04-15 16:18:49 +00:00

28 lines
992 B
Plaintext

//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#import <SceneKit/SceneKit.h>
extern "C" NS_RETURNS_RETAINED __nullable id
SCN_Swift_SCNSceneSource_entryWithIdentifier(
id NS_RELEASES_ARGUMENT __nonnull self_,
NSString *NS_RELEASES_ARGUMENT __nonnull uid,
Class NS_RELEASES_ARGUMENT __nonnull entryClass) {
SCNSceneSource *sceneSource = self_;
id Result = [[sceneSource entryWithIdentifier:uid withClass:entryClass] retain];
[self_ release];
[uid release];
[entryClass release];
return Result;
}