Some checks failed
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m34s
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 2m46s
sm-rpc / build (Debug, host.gcc) (push) Failing after 1m28s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 2m14s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 2m8s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m35s
sm-rpc / build (Release, host.gcc) (push) Failing after 1m55s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 7m21s
27 lines
509 B
C++
27 lines
509 B
C++
#ifdef TRACY_ENABLE
|
|
# ifdef __linux__
|
|
# include "TracyDebug.hpp"
|
|
# ifdef TRACY_VERBOSE
|
|
# include <dlfcn.h>
|
|
# include <link.h>
|
|
# endif
|
|
|
|
extern "C" int dlclose( void* hnd )
|
|
{
|
|
#ifdef TRACY_VERBOSE
|
|
struct link_map* lm;
|
|
if( dlinfo( hnd, RTLD_DI_LINKMAP, &lm ) == 0 )
|
|
{
|
|
TracyDebug( "Overriding dlclose for %s\n", lm->l_name );
|
|
}
|
|
else
|
|
{
|
|
TracyDebug( "Overriding dlclose for unknown object (%s)\n", dlerror() );
|
|
}
|
|
#endif
|
|
return 0;
|
|
}
|
|
|
|
# endif
|
|
#endif
|