]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Utility/LLDBAssert.h
Update ELF Tool Chain to upstream r3520
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Utility / LLDBAssert.h
1 //===----------------- LLDBAssert.h --------------------------------*- C++
2 //-*-===//
3 //
4 //                     The LLVM Compiler Infrastructure
5 //
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10
11 #ifndef utility_LLDBAssert_h_
12 #define utility_LLDBAssert_h_
13
14 #include <assert.h>
15
16 #ifdef LLDB_CONFIGURATION_DEBUG
17 #define lldbassert(x) assert(x)
18 #else
19 #define lldbassert(x)                                                          \
20   lldb_private::lldb_assert(x, #x, __FUNCTION__, __FILE__, __LINE__)
21 #endif
22
23 namespace lldb_private {
24 void lldb_assert(bool expression, const char *expr_text, const char *func,
25                  const char *file, unsigned int line);
26 }
27
28 #endif // utility_LLDBAssert_h_