1 //===----------------- LLDBAssert.h ------------------------------*- C++-*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef utility_LLDBAssert_h_
11 #define utility_LLDBAssert_h_
13 #ifdef LLDB_CONFIGURATION_DEBUG
14 #define lldbassert(x) assert(x)
16 #define lldbassert(x) \
17 lldb_private::lldb_assert(x, #x, __FUNCTION__, __FILE__, __LINE__)
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_