work_other.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. // +build !cgo !darwin,!linux,!openbsd
  6. // +build !windows
  7. package gl
  8. // This file contains stub implementations of what the other work*.go files
  9. // provide. These stubs don't do anything, other than compile (e.g. when cgo is
  10. // disabled).
  11. type context struct{}
  12. func (*context) enqueue(c call) uintptr {
  13. panic("unimplemented; GOOS/CGO combination not supported")
  14. }
  15. func (*context) cString(str string) (uintptr, func()) {
  16. panic("unimplemented; GOOS/CGO combination not supported")
  17. }
  18. func (*context) cStringPtr(str string) (uintptr, func()) {
  19. panic("unimplemented; GOOS/CGO combination not supported")
  20. }
  21. type context3 = context
  22. func NewContext() (Context, Worker) {
  23. panic("unimplemented; GOOS/CGO combination not supported")
  24. }
  25. func Version() string {
  26. panic("unimplemented; GOOS/CGO combination not supported")
  27. }