Debian Codegraph @

3rdparty/tracy/public/client/TracyOverride.cpp

raw
1 #ifdef TRACY_ENABLE
2 # ifdef __linux__
3 # include "TracyDebug.hpp"
4 # ifdef TRACY_VERBOSE
5 # include <dlfcn.h>
6 # include <link.h>
7 # endif
8
9 extern "C" int dlclose( void* hnd )
10 {
11 #ifdef TRACY_VERBOSE
12 struct link_map* lm;
13 if( dlinfo( hnd, RTLD_DI_LINKMAP, &lm ) == 0 )
14 {
15 TracyDebug( "Overriding dlclose for %s\n", lm->l_name );
16 }
17 else
18 {
19 TracyDebug( "Overriding dlclose for unknown object (%s)\n", dlerror() );
20 }
21 #endif
22 return 0;
23 }
24
25 # endif
26 #endif