Skip to content

Commit c7935d7

Browse files
committed
Compiler wants C functions I guess
1 parent 64715ae commit c7935d7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Testing/ABI/EntryPoints/Library.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ extension Library {
312312
#if !SWT_NO_RUNTIME_LIBRARY_DISCOVERY
313313
// MARK: - Our very own library record
314314

315-
private func _libraryRecordAccessor(_ outValue: UnsafeMutableRawPointer, _ type: UnsafeRawPointer, _ hint: UnsafeRawPointer?, _ reserved: UInt) -> CBool {
315+
private let _libraryRecordAccessor: __TestContentRecordAccessor = { outValue, type, hint, _ in
316316
#if !hasFeature(Embedded)
317317
// Make sure that the caller supplied the right Swift type. If a testing
318318
// library is implemented in a language other than Swift, they can either:

Tests/TestingTests/LibraryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private let _mockLibraryRecord: __TestContentRecord = (
174174
reserved2: 0
175175
)
176176

177-
private func _mockLibraryRecordAccessor(_ outValue: UnsafeMutableRawPointer, _ type: UnsafeRawPointer, _ hint: UnsafeRawPointer?, _ reserved: UInt) -> CBool {
177+
private let _mockLibraryRecordAccessor: __TestContentRecordAccessor = { outValue, type, hint, _ in
178178
#if !hasFeature(Embedded)
179179
// Make sure that the caller supplied the right Swift type. If a testing
180180
// library is implemented in a language other than Swift, they can either:

0 commit comments

Comments
 (0)