github.com/jwijenbergh/purego@v0.0.0-20240126093400-70ff3a61df13/libdlnested/nested.cpp (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // SPDX-FileCopyrightText: 2023 The Ebitengine Authors
     3  
     4  #include <dlfcn.h>
     5  
     6  struct nested_libdl
     7  {
     8      nested_libdl() {
     9          // Fails for sure because a symbol cannot be named like this 
    10          dlsym(RTLD_DEFAULT, "@/*<>");
    11      }
    12  };
    13  
    14  static nested_libdl test;