summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/panic.h
blob: c28a8440d95fd1e9c91b8865b52c8ca7ed7830fe (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef OSMOCORE_PANIC_H
#define OSMOCORE_PANIC_H

#include <stdarg.h>

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);

#endif