Skip to content

Commit 01faf1d

Browse files
committed
Add Compute graph debug shims for non-Darwin platforms
1 parent e3484bf commit 01faf1d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎Sources/OpenAttributeGraphShims/Adapter/Compute.swift‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,26 @@ extension Graph {
5151
}
5252
}
5353

54+
#if !canImport(Darwin)
55+
extension Graph {
56+
public func print(includeValues: Bool) {}
57+
58+
public func archiveJSON(name: String?) {}
59+
60+
public static func archiveJSON(name: UnsafePointer<CChar>?) {}
61+
62+
public func graphvizDescription(includeValues: Bool) -> String {
63+
""
64+
}
65+
66+
public static func printStack(maxFrames: Int) {}
67+
68+
public static func stackDescription(maxFrames: Int) -> String {
69+
""
70+
}
71+
}
72+
#endif
73+
5474
extension _AttributeBody {
5575
public typealias Flags = _AttributeType.Flags
5676
}

0 commit comments

Comments
 (0)