Use C++'s standardized [[noreturn]] attribute
[folly.git] / folly / SafeAssert.h
index 804c2c9db39eefba7667d26b10ac20d76ac6dae8..65d2e9f9df3af809971a4ce15683a647c44f00d7 100644 (file)
 
 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
 
 #endif /* FOLLY_SAFEASSERT_H_ */