mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This ensures that a module built from Swift interface file (and as such interop is disabled), that references 'exit' (from _SwiftConcurrencyShims module) can resolve the module reference to 'exit' even when it's being imported when interop is enabled (and thus it loads a different underlying _SwiftConcurrencyShims).
41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
//===--- _SwiftConcurrency.h - Swift Concurrency Support --------*- C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2020 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Defines types and support functions for the Swift concurrency model.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef SWIFT_CONCURRENCY_H
|
|
#define SWIFT_CONCURRENCY_H
|
|
|
|
#ifdef __cplusplus
|
|
namespace swift {
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct _SwiftContext {
|
|
struct _SwiftContext *parentContext;
|
|
} _SwiftContext;
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
} // namespace swift
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" [[noreturn]]
|
|
#endif
|
|
void exit(int);
|
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#endif // SWIFT_CONCURRENCY_H
|