For functions on the form New<T>... (...) *T or New<T>... (...) (*T, error) generate corresponding initializers. The name of an initializer is the function name where "New<T>" is replaced by "init". If no functions match for a type *T, generate a default (empty) initializer that returns new(T). The default initializer mirrors the default constructor in Java. Fixes golang/go#20254. Change-Id: I3c317418fa517d3f2de3f67f400867285b11ea4f Reviewed-on: https://go-review.googlesource.com/52012 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
76 lines
1.5 KiB
Plaintext
76 lines
1.5 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 "Ignore.objc.h"
|
|
|
|
|
|
@implementation IgnoreS {
|
|
}
|
|
|
|
- (instancetype)initWithRef:(id)ref {
|
|
self = [super init];
|
|
if (self) { __ref = ref; }
|
|
return self;
|
|
}
|
|
|
|
- (instancetype)init {
|
|
self = [super init];
|
|
if (self) {
|
|
__ref = go_seq_from_refnum(new_ignore_S());
|
|
}
|
|
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 IgnoreI {
|
|
}
|
|
|
|
- (instancetype)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 Ignore
|
|
// 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();
|
|
}
|