License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6/btrfs-unstable.git] / tools / testing / selftests / rcutorture / formal / srcu-cbmc / src / bug_on.h
blob5e7912c6a5215977f6dc84547e1bae68efa65eed
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef BUG_ON_H
3 #define BUG_ON_H
5 #include <assert.h>
7 #define BUG() assert(0)
8 #define BUG_ON(x) assert(!(x))
10 /* Does it make sense to treat warnings as errors? */
11 #define WARN() BUG()
12 #define WARN_ON(x) (BUG_ON(x), false)
14 #endif