summaryrefslogtreecommitdiff
path: root/libpicosdk/pico_platform_panic.c
blob: 49c3952f499183e09f1624380ebf78a0c5ec4e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* libpicosdk/pico_platform_panic.c - Integrate pico_platform_panic with libmisc
 *
 * Copyright (C) 2025  Luke T. Shumaker <lukeshu@lukeshu.com>
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

#include <libmisc/assert.h>

[[noreturn]] void assert_panic(const char *fmt, ...) {
	/* Most of the panic()s in pico-sdk are simple strings, very
	 * few use printf-style formatters.  And those that do are
	 * still readable if we ignore the formatting.  */
	assert_notreached(fmt);
}