Make all our package sources use Go 1.17 gofmt format (adding //go:build lines). Not strictly necessary but will avoid spurious changes as files are edited. Part of //go:build change (#41184). See https://golang.org/design/draft-gobuild Change-Id: I30822eb504168b037ed3ec0f7759da1f41251f52 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/294374 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
38 lines
1.0 KiB
Go
38 lines
1.0 KiB
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build (!cgo || (!darwin && !linux && !openbsd)) && !windows
|
|
// +build !cgo !darwin,!linux,!openbsd
|
|
// +build !windows
|
|
|
|
package gl
|
|
|
|
// This file contains stub implementations of what the other work*.go files
|
|
// provide. These stubs don't do anything, other than compile (e.g. when cgo is
|
|
// disabled).
|
|
|
|
type context struct{}
|
|
|
|
func (*context) enqueue(c call) uintptr {
|
|
panic("unimplemented; GOOS/CGO combination not supported")
|
|
}
|
|
|
|
func (*context) cString(str string) (uintptr, func()) {
|
|
panic("unimplemented; GOOS/CGO combination not supported")
|
|
}
|
|
|
|
func (*context) cStringPtr(str string) (uintptr, func()) {
|
|
panic("unimplemented; GOOS/CGO combination not supported")
|
|
}
|
|
|
|
type context3 = context
|
|
|
|
func NewContext() (Context, Worker) {
|
|
panic("unimplemented; GOOS/CGO combination not supported")
|
|
}
|
|
|
|
func Version() string {
|
|
panic("unimplemented; GOOS/CGO combination not supported")
|
|
}
|