summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/panic.h
blob: 5d575c4b5dbe403e65d77a004b5c9999e624903b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

/*! \addtogroup utils
 *  @{
 */

/*! \file panic.h */

#include <stdarg.h>

/*! \brief panic handler callback function type */
typedef void (*osmo_panic_handler_t)(const char *fmt, va_list args);

extern void osmo_panic(const char *fmt, ...);
extern void osmo_set_panic_handler(osmo_panic_handler_t h);

/*! @} */