File tree Expand file tree Collapse file tree 3 files changed +26
-10
lines changed Expand file tree Collapse file tree 3 files changed +26
-10
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ set(swift_runtime_sources
67
67
RuntimeInvocationsTracking.cpp
68
68
SwiftDtoa.cpp
69
69
SwiftTLSContext.cpp
70
+ ThreadingError.cpp
70
71
AccessibleFunction.cpp )
71
72
72
73
# Acknowledge that the following sources are known.
Original file line number Diff line number Diff line change @@ -465,13 +465,3 @@ void swift::swift_abortDisabledUnicodeSupport() {
465
465
" Unicode normalization data is disabled on this platform" );
466
466
467
467
}
468
-
469
- // / Halt because of a problem in the threading library
470
- SWIFT_ATTRIBUTE_NORETURN
471
- SWIFT_FORMAT (1 , 2 )
472
- void swift::threading::fatal(const char *msg, ...) {
473
- va_list val;
474
- va_start (val, msg);
475
-
476
- swift::fatalErrorv (0 , msg, val);
477
- }
Original file line number Diff line number Diff line change
1
+ // ===--- ThreadingError.cpp - Error handling support code -----------------===//
2
+ //
3
+ // This source file is part of the Swift.org open source project
4
+ //
5
+ // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
6
+ // Licensed under Apache License v2.0 with Runtime Library Exception
7
+ //
8
+ // See https://swift.org/LICENSE.txt for license information
9
+ // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
+ //
11
+ // ===----------------------------------------------------------------------===//
12
+
13
+ #include " swift/Runtime/Debug.h"
14
+ #include " swift/Threading/Errors.h"
15
+ #include < cstdio>
16
+
17
+ // Handle fatal errors from the threading library
18
+ SWIFT_ATTRIBUTE_NORETURN
19
+ SWIFT_FORMAT (1 , 2 )
20
+ void swift::threading::fatal(const char *format, ...) {
21
+ va_list val;
22
+
23
+ va_start (val, format);
24
+ swift::fatalErrorv (0 , format, val);
25
+ }
You can’t perform that action at this time.
0 commit comments