File: panic.h

package info (click to toggle)
libosmocore 1.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,796 kB
  • sloc: ansic: 125,901; python: 2,193; makefile: 1,769; sh: 529; exp: 63; xml: 19
file content (15 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

/*! \addtogroup utils
 *  @{
 * \file panic.h */

#include <stdarg.h>

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

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

/*! @} */