// Copyright (c) 2020-now by the Zeek Project. See LICENSE for details. #pragma once #include #cmakedefine HILTI_HAVE_BACKTRACE #ifdef HILTI_HAVE_BACKTRACE #include <${Backtrace_HEADER}> #endif // GCC uses __SANITIZE_ADDRESS__, Clang uses __has_feature. #if defined(__SANITIZE_ADDRESS__) #define HILTI_HAVE_ASAN #endif #if defined(__has_feature) #if __has_feature(address_sanitizer) #define HILTI_HAVE_ASAN #endif #endif