@web-font-path: "roboto-debian.css";
v2.2.0 (RP2040)
Loading...
Searching...
No Matches
panic.h
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _PICO_PLATFORM_PANIC_H
#define _PICO_PLATFORM_PANIC_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __ASSEMBLER__
void __attribute__((noreturn)) panic_unsupported(void);
void __attribute__((noreturn)) panic(const char *fmt, ...);
#ifdef NDEBUG
#define panic_compact(...) panic(__VA_ARGS__)
#else
#define panic_compact(...) panic("")
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
panic_unsupported
void panic_unsupported(void)
Panics with the message "Unsupported".
Definition panic.c:20
panic
void panic(const char *fmt,...)
Displays a panic message and halts execution.
Definition panic.c:64