9#ifndef LLDB_UTILITY_LLDBASSERT_H
10#define LLDB_UTILITY_LLDBASSERT_H
12#include "llvm/ADT/StringRef.h"
15#define lldbassert(x) assert(x)
21#define lldbassert(x) \
22 lldb_private::lldb_assert(static_cast<bool>(x), #x, __FUNCTION__, \
23 __FILE_NAME__, __LINE__)
25#define lldbassert(x) \
26 lldb_private::lldb_assert(static_cast<bool>(x), #x, __FUNCTION__, __FILE__, \
32void lldb_assert(
bool expression,
const char *expr_text,
const char *func,
33 const char *file,
unsigned int line);
36 llvm::StringRef backtrace,
37 llvm::StringRef prompt);
A class that represents a running process on the host machine.
void lldb_assert(bool expression, const char *expr_text, const char *func, const char *file, unsigned int line)
void SetLLDBAssertCallback(LLDBAssertCallback callback)
void(* LLDBAssertCallback)(llvm::StringRef message, llvm::StringRef backtrace, llvm::StringRef prompt)