unittests: fix library loading

This commit is contained in:
nillerusr
2023-04-07 13:47:43 +03:00
parent dcdcf6b733
commit 4f063c4053
9 changed files with 156 additions and 127 deletions
+1 -9
View File
@@ -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:
//-----------------------------------------------------------------------------
+6
View File
@@ -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
+8 -7
View File
@@ -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