1 //===----------------- LLDBAssert.h ------------------------------*- C++-*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef utility_LLDBAssert_h_
10 #define utility_LLDBAssert_h_
12 #ifdef LLDB_CONFIGURATION_DEBUG
13 #define lldbassert(x) assert(x)
15 #define lldbassert(x) \
16 lldb_private::lldb_assert(static_cast<bool>(x), #x, __FUNCTION__, __FILE__, \
20 namespace lldb_private {
21 void lldb_assert(bool expression, const char *expr_text, const char *func,
22 const char *file, unsigned int line);
25 #endif // utility_LLDBAssert_h_