File: universe.objc.m.golden

package info (click to toggle)
golang-golang-x-mobile 0.0~git20251126.5c265dc-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,836 kB
  • sloc: objc: 1,536; java: 1,489; ansic: 1,159; xml: 365; asm: 34; sh: 14; makefile: 5
file content (45 lines) | stat: -rw-r--r-- 969 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Objective-C API for talking to  Go package.
//   gobind -lang=objc 
//
// File is generated by gobind. Do not edit.

#include <Foundation/Foundation.h>
#include "seq.h"
#include "_cgo_export.h"
#include "Universe.objc.h"

@implementation Universeerror {
}

- (nonnull instancetype)initWithRef:(id)ref {
	if (self) {
		__ref = ref;
		self = [super initWithDomain:@"go" code:1 userInfo:@{NSLocalizedDescriptionKey: [self error]}];
	}
	return self;
}

- (NSString* _Nonnull)error {
	int32_t refnum = go_seq_go_to_refnum(self._ref);
	nstring r0 = proxy_error_Error(refnum);
	NSString *_ret0_ = go_seq_to_objc_string(r0);
	return _ret0_;
}

@end



nstring cproxy_error_Error(int32_t refnum) {
	@autoreleasepool {
		Universeerror* o = go_seq_objc_from_refnum(refnum);
		NSString* _Nonnull ret0_;
		ret0_ = [o localizedDescription];
		nstring _ret0_ = go_seq_from_objc_string(ret0_);
		return _ret0_;
	}
}

__attribute__((constructor)) static void init() {
	init_seq();
}