Skip to content

Commit 10006e9

Browse files
committed
Oh yeah return types
1 parent c0f67e2 commit 10006e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/TestingMacros/ConditionMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ extension ExitTestConditionMacro {
507507
"""
508508
@available(*, deprecated, message: "This type is an implementation detail of the testing library. Do not use it directly.")
509509
enum \(enumName) {
510-
@c private nonisolated static func accessor(_ outValue: UnsafeMutableRawPointer, _ type: UnsafeRawPointer, _ hint: UnsafeRawPointer?, _ reserved: UInt) {
510+
@c private nonisolated static func accessor(_ outValue: UnsafeMutableRawPointer, _ type: UnsafeRawPointer, _ hint: UnsafeRawPointer?, _: UInt) -> CBool {
511511
Testing.ExitTest.__store(
512512
\(idExpr),
513513
\(bodyThunkName),

Sources/TestingMacros/SuiteDeclarationMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public struct SuiteDeclarationMacro: MemberMacro, PeerMacro, Sendable {
145145
result.append(
146146
"""
147147
@available(*, deprecated, message: "This property is an implementation detail of the testing library. Do not use it directly.")
148-
@c private nonisolated static func \(accessorName)(_ outValue: UnsafeMutableRawPointer, _ type: UnsafeRawPointer, _ hint: UnsafeRawPointer?, _ reserved: UInt) {
148+
@c private nonisolated static func \(accessorName)(_ outValue: UnsafeMutableRawPointer, _ type: UnsafeRawPointer, _ hint: UnsafeRawPointer?, _: UInt) -> CBool {
149149
Testing.Test.__store(\(generatorName), into: outValue, asTypeAt: type)
150150
}
151151
"""

Sources/TestingMacros/TestDeclarationMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public struct TestDeclarationMacro: PeerMacro, Sendable {
472472
result.append(
473473
"""
474474
@available(*, deprecated, message: "This property is an implementation detail of the testing library. Do not use it directly.")
475-
@c private nonisolated \(staticKeyword(for: typeName)) func \(accessorName)(_ outValue: UnsafeMutableRawPointer, _ type: UnsafeRawPointer, _: UnsafeRawPointer?, _ reserved: UInt) {
475+
@c private nonisolated \(staticKeyword(for: typeName)) func \(accessorName)(_ outValue: UnsafeMutableRawPointer, _ type: UnsafeRawPointer, _: UnsafeRawPointer?, _: UInt) -> CBool {
476476
Testing.Test.__store(\(generatorName), into: outValue, asTypeAt: type)
477477
}
478478
"""

0 commit comments

Comments
 (0)