Skip to content

Commit 77d8f1d

Browse files
committed
generate: place mpsgraph and mps earlier in the list to be found first
1 parent 4e70fcd commit 77d8f1d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

generate/function.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ func (db *Generator) ToFunction(fw string, sym Symbol) *codegen.Function {
9999

100100
// populate params:
101101
for _, p := range fntyp.Parameters {
102-
fmt.Printf("PARAM: %v: %v %T\n", sym.Name, p.Name, p.Type)
103102
if p.Type == nil {
104103
fmt.Printf("skipping %s: %s because of nil type\n", sym.Name, p.Name)
105104
return nil
@@ -118,7 +117,6 @@ func (db *Generator) ToFunction(fw string, sym Symbol) *codegen.Function {
118117
}
119118

120119
// detect if we have a CFRange, CFTypeRef, or CFStringInlineBuffer as an argument type
121-
fmt.Println("P ocname:", sym.Name, p.Type.ObjcName(), unhandledStructType(p.Type.ObjcName()))
122120
if unhandledStructType(p.Type.ObjcName()) {
123121
fmt.Printf("skipping %s: %s because of unhandled struct type %s\n", sym.Name, p.Name, p.Type.ObjcName())
124122
return nil

generate/modules/modules.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ var All = []Module{
155155
{"IOSurface", "IOSurface", "iosurface", "IOSurface/IOSurface.h", []string{"IOSurface", "kIOSurface"}},
156156
{"Metal", "Metal", "metal", "Metal/Metal.h", []string{"MTL"}},
157157
{"MetalKit", "Metal Kit", "metalkit", "MetalKit/MetalKit.h", []string{"MTK"}},
158-
{"MetalPerformanceShadersGraph", "Metal Performance Shaders Graph", "mpsgraph", "MetalPerformanceShadersGraph/MetalPerformanceShadersGraph.h", []string{"MPSGraph"}},
159-
{"MetalPerformanceShaders", "Metal Performance Shaders", "mps", "MetalPerformanceShaders/MetalPerformanceShaders.h", []string{"MPS"}},
160158
{"SystemConfiguration", "System Configuration", "sysconfig", "SystemConfiguration/SystemConfiguration.h", []string{"SC", "kSC"}},
161159
{"MediaPlayer", "Media Player", "mediaplayer", "MediaPlayer/MediaPlayer.h", []string{"MP"}},
162160
}

0 commit comments

Comments
 (0)