DEV: coccinelle: Add bug_on.cocci
authorTim Duesterhus <tim@bastelstu.be>
Wed, 15 Sep 2021 11:58:48 +0000 (13:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Sep 2021 15:22:05 +0000 (17:22 +0200)
commit02fa646a373aedaf43b946169ccbe31e82d265b5
tree89aded9a77fdfe2f669ba897359ccb8717a328ef
parent63ee0e4c01b94aee5fc6c6dd98cfc4480ae5ea46
DEV: coccinelle: Add bug_on.cocci

This replaces an if + ABORT_NOW() by BUG_ON(). It might change behavior,
because BUG_ON will result in a no-op if not enabled.
dev/coccinelle/bug_on.cocci [new file with mode: 0644]