base: Add a warn_if macro

Add a warn if macro that is analogous to the panic_if and fatal_if.
1 file changed