mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Merge pull request #5306 from Kelimion/fix-3449
Define empty `gb_no_asan` if VS < 2022
This commit is contained in:
+5
-1
@@ -497,7 +497,11 @@ typedef i32 b32; // NOTE(bill): Prefer this!!!
|
|||||||
|
|
||||||
#if !defined(gb_no_asan)
|
#if !defined(gb_no_asan)
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#define gb_no_asan __declspec(no_sanitize_address)
|
#if _MSC_VER >= 1930
|
||||||
|
#define gb_no_asan __declspec(no_sanitize_address)
|
||||||
|
#else
|
||||||
|
#define gb_no_asan
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define gb_no_asan __attribute__((disable_sanitizer_instrumentation))
|
#define gb_no_asan __attribute__((disable_sanitizer_instrumentation))
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user