dlfcn_playground.go 600 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: Apache-2.0
  2. // SPDX-FileCopyrightText: 2024 The Ebitengine Authors
  3. //go:build faketime
  4. package purego
  5. import "errors"
  6. func Dlopen(path string, mode int) (uintptr, error) {
  7. return 0, errors.New("Dlopen is not supported in the playground")
  8. }
  9. func Dlsym(handle uintptr, name string) (uintptr, error) {
  10. return 0, errors.New("Dlsym is not supported in the playground")
  11. }
  12. func Dlclose(handle uintptr) error {
  13. return errors.New("Dlclose is not supported in the playground")
  14. }
  15. func loadSymbol(handle uintptr, name string) (uintptr, error) {
  16. return Dlsym(handle, name)
  17. }