We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ABI.Version.eventHandler(...)
1 parent 99ed4b3 commit dca4927Copy full SHA for dca4927
Sources/Testing/ABI/ABI.swift
@@ -20,6 +20,7 @@ extension ABI {
20
/// The numeric representation of this ABI version.
21
static var versionNumber: Int { get }
22
23
+#if canImport(Foundation) && (!SWT_NO_FILE_IO || !SWT_NO_ABI_ENTRY_POINT)
24
/// Create an event handler that encodes events as JSON and forwards them to
25
/// an ABI-friendly event handler.
26
///
@@ -38,6 +39,7 @@ extension ABI {
38
39
encodeAsJSONLines: Bool,
40
forwardingTo eventHandler: @escaping @Sendable (_ recordJSON: UnsafeRawBufferPointer) -> Void
41
) -> Event.Handler
42
+#endif
43
}
44
45
/// The current supported ABI version (ignoring any experimental versions.)
0 commit comments