Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Sources/Testing/ABI/EntryPoints/ABIEntryPoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ extension ABI.v0 {
/// - Note: This function's name is prefixed with `swt_` instead of
/// `swift_testing_` for binary compatibility reasons. Future ABI entry point
/// functions should use the `swift_testing_` prefix instead.
#if compiler(>=6.3.1)
@c(swt_abiv0_getEntryPoint)
#else
@_cdecl("swt_abiv0_getEntryPoint")
#endif
@usableFromInline func abiv0_getEntryPoint() -> UnsafeRawPointer {
unsafeBitCast(ABI.v0.entryPoint, to: UnsafeRawPointer.self)
}
Expand Down
8 changes: 8 additions & 0 deletions Sources/_TestingInterop/FallbackEventHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ package typealias FallbackEventHandler = @Sendable @convention(c) (
/// Get the current fallback event handler.
///
/// - Returns: The currently-set handler function, if any.
#if compiler(>=6.3.1)
@c
#else
@_cdecl("_swift_testing_getFallbackEventHandler")
#endif
@usableFromInline
package func _swift_testing_getFallbackEventHandler() -> FallbackEventHandler? {
#if SWT_TARGET_OS_APPLE && !SWT_NO_OS_UNFAIR_LOCK
Expand Down Expand Up @@ -83,7 +87,11 @@ package func _swift_testing_getFallbackEventHandler() -> FallbackEventHandler? {
/// The fallback event handler can only be installed once per process, typically
/// by the first testing library to run. If this function has already been
/// called and the handler set, it does not replace the previous handler.
#if compiler(>=6.3.1)
@c
#else
@_cdecl("_swift_testing_installFallbackEventHandler")
#endif
@usableFromInline
package func _swift_testing_installFallbackEventHandler(_ handler: FallbackEventHandler) -> CBool {
#if SWT_TARGET_OS_APPLE && !SWT_NO_OS_UNFAIR_LOCK
Expand Down