Bind attempts to generate bindings for everything a package exports, generating an error for what it cannot handle. For multiple bound packages, unexporting what should not be bound is sometimes awkward or outright impossible. Lacking the equivalent of Cgo's //export directory, this CL change the behaviour of bind to simply ignore everything it can't generate bindings for, even if otherwise exported. For every declaration it ignores, a comment is generated instead, to help any confusion as to why a particular export was not included. Change-Id: I2c7a5bee0f19a58009293b4e5ac2c95687e62e80 Reviewed-on: https://go-review.googlesource.com/20651 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
69 lines
1.4 KiB
Plaintext
69 lines
1.4 KiB
Plaintext
// Objective-C API for talking to ignore Go package.
|
|
// gobind -lang=objc ignore
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#include <Foundation/Foundation.h>
|
|
#include "seq.h"
|
|
#include "_cgo_export.h"
|
|
#include "GoIgnore.h"
|
|
|
|
static NSString* errDomain = @"go.ignore";
|
|
|
|
|
|
@implementation GoIgnoreS {
|
|
}
|
|
|
|
- (id)initWithRef:(id)ref {
|
|
self = [super init];
|
|
if (self) { __ref = ref; }
|
|
return self;
|
|
}
|
|
|
|
// skipped unsupported field F with type *types.Var
|
|
|
|
// skipped method S.Argument with unsupported parameter or return types
|
|
|
|
// skipped method S.Result with unsupported parameter or return types
|
|
|
|
@end
|
|
|
|
@implementation GoIgnoreI {
|
|
}
|
|
|
|
- (id)initWithRef:(id)ref {
|
|
self = [super init];
|
|
if (self) { __ref = ref; }
|
|
return self;
|
|
}
|
|
|
|
// skipped method I.Argument with unsupported parameter or return types
|
|
|
|
// skipped method I.Result with unsupported parameter or return types
|
|
|
|
@end
|
|
|
|
|
|
// skipped const NamedConst with unsupported type: *types.Const
|
|
|
|
|
|
@implementation GoIgnore
|
|
// skipped variable V with unsupported type: *types.Interface
|
|
|
|
// skipped variable Var with unsupported type: *types.Interface
|
|
|
|
@end
|
|
|
|
|
|
// skipped function Argument with unsupported parameter or return types
|
|
|
|
// skipped function Result with unsupported parameter or return types
|
|
|
|
// skipped method I.Argument with unsupported parameter or return types
|
|
|
|
// skipped method I.Result with unsupported parameter or return types
|
|
|
|
__attribute__((constructor)) static void init() {
|
|
init_seq();
|
|
}
|