mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 21:35:19 +00:00
Define empty gb_no_asan if VS < 2022
This commit is contained in:
@@ -497,7 +497,11 @@ typedef i32 b32; // NOTE(bill): Prefer this!!!
|
||||
|
||||
#if !defined(gb_no_asan)
|
||||
#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
|
||||
#define gb_no_asan __attribute__((disable_sanitizer_instrumentation))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user