dlerror.go raw

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