documentation/FuriCheck.md
The best way to protect system integrity is to reduce amount cases that we must handle and crash the system as early as possible.
For that purpose, we have a bunch of helpers located in Furi Core check.h.
furi_assert(CONDITION) or furi_assert(CONDITION, MESSAGE_CSTR)Assert condition in development environment and crash the system if CONDITION is false.
LIB_DEBUG=1 if you need it.furi_check(CONDITION) or furi_check(CONDITION, MESSAGE_CSTR)Always assert condition and crash the system if CONDITION is false.
furi_crash() or furi_crash(MESSAGE_CSTR)Crash the system.
furi_halt() or furi_halt(MESSAGE_CSTR)Halt the system.