aboutsummaryrefslogtreecommitdiff
path: root/lib/sbi
diff options
context:
space:
mode:
authorXiang W <wxjstz@126.com>2021-09-16 12:32:49 +0800
committerAnup Patel <anup@brainfault.org>2021-09-22 13:35:30 +0530
commit12753d22563f7d2d01f2c6644c7b66b06eb5c90f (patch)
treef1813ef20b2af5219a5481d1062262454152e2ac /lib/sbi
parent3477f08b08da6bfd904218fdb76b3db592dd7ebd (diff)
lib: sbi: add some macros to detect BUG at runtime
Three macros are added. One is called BUG, which is used to put in an unreachable branch. One is called BUG_ON, which is used to check bugs and assert conditions are opposite. One is called SBI_ASSERT, used for assertion checking. Signed-off-by: Xiang W <wxjstz@126.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'lib/sbi')
0 files changed, 0 insertions, 0 deletions