summaryrefslogtreecommitdiff
path: root/vendor/github.com/ebitengine/purego/dlerror.go
blob: 95cdfe16f2488eee397964684f96b0c4ab596a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 The Ebitengine Authors

//go:build darwin || freebsd || linux

package purego

// Dlerror represents an error value returned from Dlopen, Dlsym, or Dlclose.
//
// This type is not available on Windows as there is no counterpart to it on Windows.
type Dlerror struct {
	s string
}

func (e Dlerror) Error() string {
	return e.s
}