Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

22 lines
435 B
C

// Copyright (c) 2020-now by the Zeek Project. See LICENSE for details.
#pragma once
#include <string>
#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