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