mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
engine: drop XASH_DYNAMIC_DLADDR
This commit is contained in:
parent
02ce80981c
commit
ba039b8e71
@ -334,24 +334,6 @@ void Sys_RestoreCrashHandler( void )
|
|||||||
|
|
||||||
static struct sigaction oldFilter;
|
static struct sigaction oldFilter;
|
||||||
|
|
||||||
#ifdef XASH_DYNAMIC_DLADDR
|
|
||||||
static int d_dladdr( void *sym, Dl_info *info )
|
|
||||||
{
|
|
||||||
static int (*dladdr_real) ( void *sym, Dl_info *info );
|
|
||||||
|
|
||||||
if( !dladdr_real )
|
|
||||||
dladdr_real = dlsym( (void*)(size_t)(-1), "dladdr" );
|
|
||||||
|
|
||||||
memset( info, 0, sizeof( *info ) );
|
|
||||||
|
|
||||||
if( !dladdr_real )
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
return dladdr_real( sym, info );
|
|
||||||
}
|
|
||||||
#define dladdr d_dladdr
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int Sys_PrintFrame( char *buf, int len, int i, void *addr )
|
static int Sys_PrintFrame( char *buf, int len, int i, void *addr )
|
||||||
{
|
{
|
||||||
Dl_info dlinfo;
|
Dl_info dlinfo;
|
||||||
|
@ -200,24 +200,6 @@ void *COM_FunctionFromName( void *hInstance, const char *pName )
|
|||||||
return COM_GetProcAddress( hInstance, pName );
|
return COM_GetProcAddress( hInstance, pName );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XASH_DYNAMIC_DLADDR
|
|
||||||
static int d_dladdr( void *sym, Dl_info *info )
|
|
||||||
{
|
|
||||||
static int (*dladdr_real) ( void *sym, Dl_info *info );
|
|
||||||
|
|
||||||
if( !dladdr_real )
|
|
||||||
dladdr_real = dlsym( (void*)(size_t)(-1), "dladdr" );
|
|
||||||
|
|
||||||
memset( info, 0, sizeof( *info ) );
|
|
||||||
|
|
||||||
if( !dladdr_real )
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
return dladdr_real( sym, info );
|
|
||||||
}
|
|
||||||
#define dladdr d_dladdr
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const char *COM_NameForFunction( void *hInstance, void *function )
|
const char *COM_NameForFunction( void *hInstance, void *function )
|
||||||
{
|
{
|
||||||
#ifdef XASH_DLL_LOADER
|
#ifdef XASH_DLL_LOADER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user