diff options
author | Mikko Lehtonen <scoopr@iki.fi> | 2017-01-29 01:10:38 +0200 |
---|---|---|
committer | Mikko Lehtonen <scoopr@iki.fi> | 2017-01-31 11:57:45 +0200 |
commit | 4736263931176916c3c21a51795dd3ad74e62e3d (patch) | |
tree | ac6d5e0e77a54d932c6c9686a3f978d04d8ef1ee /tests/headers/objc_interface.h | |
parent | bdd034b07a02a1a886ac8b94a81327608f6124b3 (diff) |
Add initial Objective C support
It parses interfaces and protocol but ignores base classes, and their
methods which don’t have arguments, the method signature is currently
ignored. Also you can pass objc class instances to C functions.
Next steps are inheritance/base classes, method signatures, properties,
categories. Then check with system headers what is missing.
Diffstat (limited to 'tests/headers/objc_interface.h')
-rw-r--r-- | tests/headers/objc_interface.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/headers/objc_interface.h b/tests/headers/objc_interface.h new file mode 100644 index 00000000..af84bf92 --- /dev/null +++ b/tests/headers/objc_interface.h @@ -0,0 +1,8 @@ +// bindgen-flags: --objc-extern-crate -- -x objective-c +// bindgen-osx-only + +@interface Foo +@end + +@protocol bar +@end |