Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions include/swift/Basic/Require.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

#include "llvm/Support/raw_ostream.h"

namespace swift {

/// Checks the `condition` and if it's false abort with `message`.
/// In contrast to `assert` and similar functions, `require` works in
/// no-assert builds the same way as in debug builds.
Expand All @@ -31,4 +33,6 @@ inline void require(bool condition, const char *message) {
}
}

}

#endif