mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SwiftCompilerSources: forward assertion and precondition failures to the assertion-handling in the C++ code base.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "swift/Basic/Assertions.h"
|
||||
#include "swift/Basic/BasicBridging.h"
|
||||
#include "llvm/Support/JSON.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
@@ -22,6 +23,11 @@
|
||||
|
||||
using namespace swift;
|
||||
|
||||
void assertFail(const char * _Nonnull msg, const char * _Nonnull file,
|
||||
SwiftUInt line, const char * _Nonnull function) {
|
||||
ASSERT_failure(msg, file, line, function);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// MARK: BridgedStringRef
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user