Better handling of multiple classes and input files. Handle
Objective C type parameter declarations. Check Typedefs when determining if a Type is a pointer or a function.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import "C"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitlab.wow.st/gmp/nswrap/examples/foundation/ns"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Started")
|
||||
n := ns.StringWithUTF8String(ns.CharFromString("hi there"))
|
||||
c := n.CapitalizedString()
|
||||
gstring := c.UTF8String().String()
|
||||
fmt.Println(gstring)
|
||||
fmt.Println("ok")
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
InputFiles = [
|
||||
"/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h",
|
||||
"/System/Library/Frameworks/Foundation.framework/Headers/NSString.h",
|
||||
]
|
||||
Classes = [
|
||||
"NSString",
|
||||
"NSDictionary",
|
||||
]
|
||||
SysImports = [ "Foundation/Foundation.h" ]
|
||||
Pragma = [ 'clang diagnostic ignored "-Wformat-security"' ]
|
||||
Reference in New Issue
Block a user