work_other.go 990 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2019 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. //go:build (!cgo || (!darwin && !linux && !openbsd)) && !windows
  5. package gl
  6. // This file contains stub implementations of what the other work*.go files
  7. // provide. These stubs don't do anything, other than compile (e.g. when cgo is
  8. // disabled).
  9. type context struct{}
  10. func (*context) enqueue(c call) uintptr {
  11. panic("unimplemented; GOOS/CGO combination not supported")
  12. }
  13. func (*context) cString(str string) (uintptr, func()) {
  14. panic("unimplemented; GOOS/CGO combination not supported")
  15. }
  16. func (*context) cStringPtr(str string) (uintptr, func()) {
  17. panic("unimplemented; GOOS/CGO combination not supported")
  18. }
  19. type context3 = context
  20. func NewContext() (Context, Worker) {
  21. panic("unimplemented; GOOS/CGO combination not supported")
  22. }
  23. func Version() string {
  24. panic("unimplemented; GOOS/CGO combination not supported")
  25. }