Before this change, func Hello() of mypkg package generated a function GoMypkg_Hello to distinguish the prefix from the function name. It seems the use of '_' is very rare in Objective-C though. After this change, it generates GoMypkgHello. Change-Id: Ic7aa2b667363a447a5ff3500262502d3137d6853 Reviewed-on: https://go-review.googlesource.com/11893 Reviewed-by: Damien Neil <dneil@google.com>
44 lines
969 B
Plaintext
44 lines
969 B
Plaintext
// Objective-C API for talking to interfaces Go package.
|
|
// gobind -lang=objc interfaces
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#include "GoInterfaces.h"
|
|
#include <Foundation/Foundation.h>
|
|
#include "seq.h"
|
|
|
|
static NSString *errDomain = @"go.interfaces";
|
|
|
|
#define _DESCRIPTOR_ "interfaces"
|
|
|
|
#define _CALL_Add3_ 1
|
|
#define _CALL_Seven_ 2
|
|
|
|
|
|
|
|
int32_t GoInterfacesAdd3(GoInterfacesI* r) {
|
|
GoSeq in_ = {};
|
|
GoSeq out_ = {};
|
|
go_seq_writeRef(&in_, r.ref);
|
|
go_seq_send(_DESCRIPTOR_, _CALL_Add3_, &in_, &out_);
|
|
int32_t ret0_ = go_seq_readInt32(&out_);
|
|
go_seq_free(&in_);
|
|
go_seq_free(&out_);
|
|
return ret0_;
|
|
}
|
|
|
|
GoInterfacesI* GoInterfacesSeven() {
|
|
GoSeq in_ = {};
|
|
GoSeq out_ = {};
|
|
go_seq_send(_DESCRIPTOR_, _CALL_Seven_, &in_, &out_);
|
|
GoSeqRef* ret0__ref = go_seq_readRef(&out_);
|
|
GoInterfacesI* ret0_ = ret0__ref.obj;
|
|
if (ret0_ == NULL) {
|
|
ret0_ = [[GoInterfacesI alloc] initWithRef:ret0__ref];
|
|
}
|
|
go_seq_free(&in_);
|
|
go_seq_free(&out_);
|
|
return ret0_;
|
|
}
|
|
|