mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
unittests: fix library loading
This commit is contained in:
@@ -429,13 +429,7 @@ void CDispCollTree::AABBTree_CreateLeafs( void )
|
||||
}
|
||||
}
|
||||
|
||||
#if COMPILER_CLANG
|
||||
#define NOASAN __attribute__((no_sanitize("address")))
|
||||
#else
|
||||
#define NOASAN
|
||||
#endif
|
||||
|
||||
void NOASAN CDispCollTree::AABBTree_GenerateBoxes_r( int nodeIndex, Vector *pMins, Vector *pMaxs )
|
||||
void NO_ASAN CDispCollTree::AABBTree_GenerateBoxes_r( int nodeIndex, Vector *pMins, Vector *pMaxs )
|
||||
{
|
||||
// leaf
|
||||
ClearBounds( *pMins, *pMaxs );
|
||||
@@ -467,8 +461,6 @@ void NOASAN CDispCollTree::AABBTree_GenerateBoxes_r( int nodeIndex, Vector *pMin
|
||||
}
|
||||
}
|
||||
|
||||
#undef NOASAN
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
@@ -606,6 +606,12 @@ typedef void * HINSTANCE;
|
||||
#define FMTFUNCTION( a, b )
|
||||
#endif
|
||||
|
||||
#if COMPILER_CLANG || COMPILER_GCC
|
||||
#define NO_ASAN __attribute__((no_sanitize("address")))
|
||||
#else
|
||||
#define NO_ASAN
|
||||
#endif
|
||||
|
||||
#if defined( _WIN32 )
|
||||
|
||||
// Used for dll exporting and importing
|
||||
|
||||
@@ -123,21 +123,21 @@ union TSLIST_HEAD_ALIGN TSLHead_t
|
||||
// but it could perhaps (?) lead to problems with store forwarding. I don't know 'cause I didn't
|
||||
// performance-test or design original code, I'm just making it work on PowerPC.
|
||||
#ifdef VALVE_BIG_ENDIAN
|
||||
int16 Sequence;
|
||||
int16 Depth;
|
||||
uint16 Sequence;
|
||||
uint16 Depth;
|
||||
#else
|
||||
int16 Depth;
|
||||
int16 Sequence;
|
||||
uint16 Depth;
|
||||
uint16 Sequence;
|
||||
#endif
|
||||
#ifdef PLATFORM_64BITS
|
||||
int32 Padding;
|
||||
uint32 Padding;
|
||||
#endif
|
||||
} value;
|
||||
|
||||
struct Value32_t
|
||||
{
|
||||
TSLNodeBase_t *Next_do_not_use_me;
|
||||
int32 DepthAndSequence;
|
||||
uint32 DepthAndSequence;
|
||||
} value32;
|
||||
|
||||
#ifdef PLATFORM_64BITS
|
||||
@@ -254,7 +254,8 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
TSLNodeBase_t *Pop()
|
||||
// TODO(nillerusr): fix asan issue later
|
||||
NO_ASAN TSLNodeBase_t *Pop()
|
||||
{
|
||||
#ifdef USE_NATIVE_SLIST
|
||||
#ifdef _X360
|
||||
|
||||
Reference in New Issue
Block a user