mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
This highly improves interop with Swift. It would map all pointers as implicitly unwrapped optionals, which skip all null safety checks. Adding `_Nullable` to pointer types makes swift map them as optionals. Also constructors are now nullable since it's valid to return nil from Go code. Change-Id: If0506bb80f31bf36f11522c16a1e66d77be935f8 GitHub-Last-Rev: bd6c30f7f50ef5ea5797b07073f0a4a70d545025 GitHub-Pull-Request: golang/mobile#26 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/159477 Run-TryBot: Elias Naur <mail@eliasnaur.com> Reviewed-by: Elias Naur <mail@eliasnaur.com>
21 lines
425 B
Plaintext
21 lines
425 B
Plaintext
// Objective-C API for talking to try Go package.
|
|
// gobind -lang=objc try
|
|
//
|
|
// File is generated by gobind. Do not edit.
|
|
|
|
#include <Foundation/Foundation.h>
|
|
#include "seq.h"
|
|
#include "_cgo_export.h"
|
|
#include "Try.objc.h"
|
|
|
|
|
|
NSString* _Nonnull TryThis(void) {
|
|
nstring r0 = proxytry__This();
|
|
NSString *_ret0_ = go_seq_to_objc_string(r0);
|
|
return _ret0_;
|
|
}
|
|
|
|
__attribute__((constructor)) static void init() {
|
|
init_seq();
|
|
}
|