github.com/ebitengine/purego@v0.8.0-alpha.2.0.20240512170805-6cd12240d332/dlfcn_playground.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // SPDX-FileCopyrightText: 2024 The Ebitengine Authors
     3  
     4  //go:build faketime
     5  
     6  package purego
     7  
     8  import _ "unsafe"
     9  
    10  // The playground doesn't support dynamic linking so just stub out the addresses
    11  var (
    12  	//go:linkname purego_dlopen purego_dlopen
    13  	purego_dlopen uintptr
    14  	//go:linkname purego_dlsym purego_dlsym
    15  	purego_dlsym uintptr
    16  	//go:linkname purego_dlerror purego_dlerror
    17  	purego_dlerror uintptr
    18  	//go:linkname purego_dlclose purego_dlclose
    19  	purego_dlclose uintptr
    20  )