repo.or.cz
/
linux-2.6
/
btrfs-unstable.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
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
blob
5e7912c6a5215977f6dc84547e1bae68efa65eed
1
/* SPDX-License-Identifier: GPL-2.0 */
2
#ifndef BUG_ON_H
3
#define BUG_ON_H
4
5
#include <assert.h>
6
7
#define BUG() assert(0)
8
#define BUG_ON(x) assert(!(x))
9
10
/* Does it make sense to treat warnings as errors? */
11
#define WARN() BUG()
12
#define WARN_ON(x) (BUG_ON(x), false)
13
14
#endif