mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 19:40:29 +08:00
15 lines
294 B
C
15 lines
294 B
C
// Copyright 2022 Stefan Kerkmann
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <stdbool.h>
|
|
|
|
extern void chSysHalt(const char *reason) __attribute__((noreturn));
|
|
|
|
void panic(const char *fmt, ...) {
|
|
chSysHalt(fmt);
|
|
}
|
|
|
|
void hard_assertion_failure(void) {
|
|
panic("hard assert");
|
|
}
|