proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
has_asan.hpp
Go to the documentation of this file.
1#ifndef VEG_HAS_ASAN_HPP_AWVAMMSFS
2#define VEG_HAS_ASAN_HPP_AWVAMMSFS
3
4#if defined(__clang__)
5#if __has_feature(address_sanitizer)
6#define VEG_HAS_ASAN 1
7#else
8#define VEG_HAS_ASAN 0
9#endif
10
11#elif defined(__SANITIZE_ADDRESS__) && __SANITIZE_ADDRESS__ == 1
12#define VEG_HAS_ASAN 1
13#else
14#define VEG_HAS_ASAN 0
15#endif
16
17#endif /* end of include guard VEG_HAS_ASAN_HPP_AWVAMMSFS */