]> git.kaiwu.me - haproxy.git/commit
DEBUG: add BUG_ON_STATIC(): a compile-time BUG_ON()
authorMaxime Henrion <mhenrion@haproxy.com>
Thu, 16 Jul 2026 16:18:17 +0000 (12:18 -0400)
committerOlivier Houchard <cognet@ci0.org>
Thu, 16 Jul 2026 16:48:05 +0000 (18:48 +0200)
commit09dbac0b2a3816f3e2b70604374e57dc2e690f33
tree7cb8808c6e1b38e65028543a2ed0d5f7f737a22f
parentcbe54688eaa15a6a2690a68f87b6a43339ab0a51
DEBUG: add BUG_ON_STATIC(): a compile-time BUG_ON()

Fails the build when <cond>, a constant expression, is true. Maps to
_Static_assert() on C11+; older dialects declare a negatively-sized
extern array instead, which emits no storage nor symbol. Usable at
file and block scope.
include/haproxy/bug.h