github.com/acrespo/mobile@v0.0.0-20190107162257-dc0771356504/bind/testdata/universe.golden (about)

     1  // Package main is an autogenerated binder stub for package universe.
     2  //   gobind -lang=go
     3  //
     4  // File is generated by gobind. Do not edit.
     5  package main
     6  
     7  /*
     8  #include <stdlib.h>
     9  #include <stdint.h>
    10  #include "seq.h"
    11  #include "universe.h"
    12  
    13  */
    14  import "C"
    15  
    16  import (
    17  	_seq "golang.org/x/mobile/bind/seq"
    18  )
    19  
    20  // suppress the error if seq ends up unused
    21  var _ = _seq.FromRefNum
    22  
    23  //export proxy_error_Error
    24  func proxy_error_Error(refnum C.int32_t) C.nstring {
    25  	ref := _seq.FromRefNum(int32(refnum))
    26  	v := ref.Get().(error)
    27  	res_0 := v.Error()
    28  	_res_0 := encodeString(res_0)
    29  	return _res_0
    30  }
    31  
    32  type proxy_error _seq.Ref
    33  
    34  func (p *proxy_error) Bind_proxy_refnum__() int32 { return (*_seq.Ref)(p).Bind_IncNum() }
    35  
    36  func (p *proxy_error) Error() string {
    37  	res := C.cproxy_error_Error(C.int32_t(p.Bind_proxy_refnum__()))
    38  	_res := decodeString(res)
    39  	return _res
    40  }