Commit 8b926d44 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

loguru: add ABORT_IF_F macro

parent b1de34b3
......@@ -1088,6 +1088,7 @@ LOGURU_ANONYMOUS_NAMESPACE_END
// Message is optional
#define ABORT_F(...) loguru::log_and_abort(0, "ABORT: ", __FILE__, __LINE__, __VA_ARGS__)
#define ABORT_IF_F(cond, ...) (LOGURU_PREDICT_TRUE((cond) == false)) ? (void)0 : loguru::log_and_abort(0, "ABORT: ", __FILE__, __LINE__, __VA_ARGS__)
// --------------------------------------------------------------------
// CHECK_F macros:
......
Supports Markdown
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