Skip to content

Commit 2fd8f1f

Browse files
committed
Don't use @c
1 parent 15cb951 commit 2fd8f1f

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?, _: UInt) -> CBool {
510+
private nonisolated static let accessor: Testing.__TestContentRecordAccessor = { outValue, type, hint, _ in
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?, _: UInt) -> CBool {
148+
private nonisolated static let \(accessorName): Testing.__TestContentRecordAccessor = { outValue, type, _, _ in
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?, _: UInt) -> CBool {
475+
private \(staticKeyword(for: typeName)) nonisolated let \(accessorName): Testing.__TestContentRecordAccessor = { outValue, type, _, _ in
476476
Testing.Test.__store(\(generatorName), into: outValue, asTypeAt: type)
477477
}
478478
"""

0 commit comments

Comments
 (0)