dlerror.go 400 B

1234567891011121314151617
  1. // SPDX-License-Identifier: Apache-2.0
  2. // SPDX-FileCopyrightText: 2023 The Ebitengine Authors
  3. //go:build darwin || freebsd || linux
  4. package purego
  5. // Dlerror represents an error value returned from Dlopen, Dlsym, or Dlclose.
  6. //
  7. // This type is not available on Windows as there is no counterpart to it on Windows.
  8. type Dlerror struct {
  9. s string
  10. }
  11. func (e Dlerror) Error() string {
  12. return e.s
  13. }