projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use std::vector in the CacheLocalityBenchmark rather than a VLA
[folly.git]
/
folly
/
SafeAssert.h
diff --git
a/folly/SafeAssert.h
b/folly/SafeAssert.h
index 7e00ee94d0b44c4f37a4f7ac67e249245689092d..39d07423dcb97f760c7d0a5a7dd2da8c67e030b6 100644
(file)
--- a/
folly/SafeAssert.h
+++ b/
folly/SafeAssert.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 201
5
Facebook, Inc.
+ * Copyright 201
6
Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-14,8
+14,7
@@
* limitations under the License.
*/
* limitations under the License.
*/
-#ifndef FOLLY_SAFEASSERT_H_
-#define FOLLY_SAFEASSERT_H_
+#pragma once
#include <folly/Portability.h>
#include <folly/Preprocessor.h>
#include <folly/Portability.h>
#include <folly/Preprocessor.h>
@@
-43,10
+42,10
@@
namespace folly { namespace detail {
namespace folly { namespace detail {
-FOLLY_NORETURN void assertionFailure(const char* expr, const char* msg,
- const char* file, unsigned int line,
- const char* function);
-
+[[noreturn]] void assertionFailure(
+ const char* expr,
+ const char* msg,
+ const char* file,
+ unsigned int line,
+ const char* function);
}} // namespace folly
}} // namespace folly
-
-#endif /* FOLLY_SAFEASSERT_H_ */