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