]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: debug: make the BUG_ON() macros check the condition in the outer one
authorWilly Tarreau <w@1wt.eu>
Mon, 21 Oct 2024 16:17:25 +0000 (18:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Oct 2024 16:17:25 +0000 (18:17 +0200)
commit8844ed2009563d5976c42b6b2b7eb8f097344f25
tree09d4d45bf69b66bc9c5691365316411144b39fec
parent68c8c910238f0b759d75b4da2128370abf184cd1
CLEANUP: debug: make the BUG_ON() macros check the condition in the outer one

The BUG_ON() macros are made of two levels so as to resolve the condition
to a string. However this doesn't offer much flexibility for performing
other operations when the condition is validated, so let's adjust them so
that the condition is checked in the outer macro and the operations are
performed in the inner one.
include/haproxy/bug.h