Skip to content
Snippets Groups Projects

Add a panic() function

Merged rahix requested to merge rahix/panic into master
All threads resolved!
1 file
+ 13
0
Compare changes
  • Side-by-side
  • Inline
+ 13
0
@@ -61,3 +61,16 @@ void __attribute__((noreturn)) panic(const char *format, ...)
card10_reset();
}
void __attribute__((noreturn)) __assert_func(
const char *file, int line, const char *func, const char *failedexpr
) {
panic("Assertion failure:\n"
" \"%s\"\n"
" failed in \"%s:%d\",\n"
" function: %s()",
failedexpr,
file,
line,
func);
}
Loading