Commit 38c5b675 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

assert: fail_fast is [[noreturn]] function

parent 90e94dd3
Pipeline #220 passed with stage
in 18 seconds
......@@ -57,11 +57,11 @@ print(const char* type,
stderr, "%s [%s] failure at %s: %s\n", type, cond, file, line);
}
inline void
[[noreturn]] inline auto
fail_fast(const char* type,
const char* cond,
const char* file,
const char* line)
const char* line) -> void
{
print(type, cond, file, line);
std::terminate();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment