universe.golden 861 B

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