#include "lldb/Utility/LLDBAssert.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h"
#if LLVM_SUPPORT_XCODE_SIGNPOSTS
#include <os/log.h>
#endif
#include <atomic>
namespace lldb_private {
static void DefaultAssertCallback(llvm::StringRef message,
llvm::StringRef backtrace,
llvm::StringRef prompt) { … }
static std::atomic<LLDBAssertCallback> g_lldb_assert_callback = …;
void lldb_assert(bool expression, const char *expr_text, const char *func,
const char *file, unsigned int line) { … }
void SetLLDBAssertCallback(LLDBAssertCallback callback) { … }
}