Macro Subspace :: sus_check_with_message

#define sus_check_with_message(cond, msg)

Verifies that the input cond, evaluated to a bool, is true. Otherwise, it will panic, printing a customized message, and terminating the program.

Use sus_check when there's nothing useful to add in the message.

The displayed output can be controlled by overriding the behaviour of sus_panic as described there. If the SUS_PROVIDE_PRINT_PANIC_MESSAGE_HANDLER macro does not consume the msg, this macro will avoid instantiating it at all.