]> git.kaiwu.me - haproxy.git/commit
DEBUG: make the _BUG_ON() macro return the condition
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Feb 2022 08:10:26 +0000 (09:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Feb 2022 10:55:47 +0000 (11:55 +0100)
commita79db30c63e3c07995a9a55a6f0f9ca53d94a977
tree43ab9be5c65f6047ca493a3ffa1167d1a6808bcd
parent305cfbde43d0e8c0529aa61b03845dc86e35ac14
DEBUG: make the _BUG_ON() macro return the condition

By doing so it now becomes an expression and will allow for example
to use WARN_ON() in tests, for example:

    if (WARN_ON(cond))
       return NULL;
include/haproxy/bug.h