Skip to content

Commit 91dd6f1

Browse files
authored
Add Graph+Debug support for Compute (#221)
1 parent 2682d4b commit 91dd6f1

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

Sources/OpenAttributeGraphShims/Graph+Debug.swift

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@
22
// Graph+Debug.swift
33
// OpenAttributeGraphShims
44

5-
#if canImport(Darwin) && !OPENATTRIBUTEGRAPH_COMPUTE // Compute's descriptionFormatDictionary API is not aligned with OAG yet.
5+
#if canImport(Darwin)
6+
7+
#if OPENATTRIBUTEGRAPH_COMPUTE
8+
extension Graph {
9+
public static var descriptionFormatDictionary: CFString {
10+
"graph/dict" as CFString
11+
}
12+
13+
public static var descriptionFormatDot: CFString {
14+
"graph/dot" as CFString
15+
}
16+
17+
public static var descriptionAllGraphs: CFString {
18+
"all_graphs" as CFString
19+
}
20+
}
21+
#endif
622

723
import Foundation
824

0 commit comments

Comments
 (0)