Commit 12753d22 authored by Xiang W's avatar Xiang W Committed by Anup Patel
Browse files

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: default avatarXiang W <wxjstz@126.com>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 3477f08b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment