Skip to content

Commit 4ba3e1f

Browse files
committed
package symbols need to be exported
1 parent c4e3e1b commit 4ba3e1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/_Testing_ExperimentalInfrastructure/FallbackEventHandler.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ private import Synchronization
1515
#endif
1616

1717
#if SWT_TARGET_OS_APPLE && !SWT_NO_OS_UNFAIR_LOCK
18+
/// The installed event handler.
1819
private nonisolated(unsafe) let _fallbackEventHandler = {
1920
let result = ManagedBuffer<FallbackEventHandler?, os_unfair_lock>.create(
2021
minimumCapacity: 1,
@@ -24,6 +25,7 @@ private nonisolated(unsafe) let _fallbackEventHandler = {
2425
return result
2526
}()
2627
#else
28+
/// The installed event handler.
2729
private nonisolated(unsafe) let _fallbackEventHandler = Atomic<UnsafeRawPointer?>(nil)
2830
#endif
2931

@@ -36,6 +38,7 @@ private nonisolated(unsafe) let _fallbackEventHandler = Atomic<UnsafeRawPointer?
3638
/// - recordJSONBaseAddress: A pointer to the first byte of the encoded event.
3739
/// - recordJSONByteCount: The size of the encoded event in bytes.
3840
/// - reserved: Reserved for future use.
41+
@usableFromInline
3942
package typealias FallbackEventHandler = @Sendable @convention(c) (
4043
_ recordJSONSchemaVersionNumber: UnsafePointer<CChar>,
4144
_ recordJSONBaseAddress: UnsafeRawPointer,
@@ -52,6 +55,7 @@ package typealias FallbackEventHandler = @Sendable @convention(c) (
5255
/// exchange the previous value with a new value, call
5356
/// ``setFallbackEventHandler(_:)`` and store its returned value.
5457
@_cdecl("swift_testing_getFallbackEventHandler")
58+
@usableFromInline
5559
package func fallbackEventHandler() -> FallbackEventHandler? {
5660
#if SWT_TARGET_OS_APPLE && !SWT_NO_OS_UNFAIR_LOCK
5761
return _fallbackEventHandler.withUnsafeMutablePointers { fallbackEventHandler, lock in
@@ -79,6 +83,7 @@ package func fallbackEventHandler() -> FallbackEventHandler? {
7983
/// by the first testing library to run. If this function has already been
8084
/// called and the handler set, it does not replace the previous handler.
8185
@_cdecl("swift_testing_installFallbackEventHandler")
86+
@usableFromInline
8287
package func installFallbackEventHandler(_ handler: FallbackEventHandler) -> CBool {
8388
#if SWT_TARGET_OS_APPLE && !SWT_NO_OS_UNFAIR_LOCK
8489
return _fallbackEventHandler.withUnsafeMutablePointers { fallbackEventHandler, lock in

0 commit comments

Comments
 (0)