LLDB  mainline
LLDBAssert.h
Go to the documentation of this file.
1 //===----------------- LLDBAssert.h ------------------------------*- C++-*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef utility_LLDBAssert_h_
10 #define utility_LLDBAssert_h_
11 
12 #ifdef LLDB_CONFIGURATION_DEBUG
13 #define lldbassert(x) assert(x)
14 #else
15 #define lldbassert(x) \
16  lldb_private::lldb_assert(static_cast<bool>(x), #x, __FUNCTION__, __FILE__, \
17  __LINE__)
18 #endif
19 
20 namespace lldb_private {
21 void lldb_assert(bool expression, const char *expr_text, const char *func,
22  const char *file, unsigned int line);
23 }
24 
25 #endif // utility_LLDBAssert_h_
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
void lldb_assert(bool expression, const char *expr_text, const char *func, const char *file, unsigned int line)
Definition: LLDBAssert.cpp:18