Skip to content

Commit 83c9fb8

Browse files
authored
Merge pull request #72829 from eeckstein/refactor_required
put the `require` function into the `swift` namespace
2 parents 6aa07ff + 9879286 commit 83c9fb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/swift/Basic/Require.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
#include "llvm/Support/raw_ostream.h"
2323

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

36+
}
37+
3438
#endif

0 commit comments

Comments
 (0)