File: issue12328.go.golden

package info (click to toggle)
golang-golang-x-mobile 0.0~git20250520.a1d9079%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,784 kB
  • sloc: objc: 1,512; java: 1,489; ansic: 1,159; xml: 365; asm: 34; sh: 14; makefile: 5
file content (54 lines) | stat: -rw-r--r-- 1,173 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
46
47
48
49
50
51
52
53
54
// Code generated by gobind. DO NOT EDIT.

// Package main is an autogenerated binder stub for package issue12328.
//
//   autogenerated by gobind -lang=go issue12328
package main

/*
#include <stdlib.h>
#include <stdint.h>
#include "seq.h"
#include "issue12328.h"

*/
import "C"

import (
	_seq "golang.org/x/mobile/bind/seq"
	"issue12328"
)

// suppress the error if seq ends up unused
var _ = _seq.FromRefNum

//export proxyissue12328_T_Err_Set
func proxyissue12328_T_Err_Set(refnum C.int32_t, v C.int32_t) {
	ref := _seq.FromRefNum(int32(refnum))
	var _v error
	_v_ref := _seq.FromRefNum(int32(v))
	if _v_ref != nil {
		if v < 0 { // go object
			_v = _v_ref.Get().(error)
		} else { // foreign object
			_v = (*proxy_error)(_v_ref)
		}
	}
	ref.Get().(*issue12328.T).Err = _v
}

//export proxyissue12328_T_Err_Get
func proxyissue12328_T_Err_Get(refnum C.int32_t) C.int32_t {
	ref := _seq.FromRefNum(int32(refnum))
	v := ref.Get().(*issue12328.T).Err
	var _v C.int32_t = _seq.NullRefNum
	if v != nil {
		_v = C.int32_t(_seq.ToRefNum(v))
	}
	return _v
}

//export new_issue12328_T
func new_issue12328_T() C.int32_t {
	return C.int32_t(_seq.ToRefNum(new(issue12328.T)))
}