26#if ! defined (octave_panic_h)
27#define octave_panic_h 1
29#include "octave-config.h"
34extern OCTINTERP_API
void vpanic (
const char *fmt, va_list args);
36OCTAVE_FORMAT_PRINTF (1, 2)
38extern OCTINTERP_API
void panic (const
char *fmt, ...);
46# define panic_impossible() do { } while (0)
48# define panic_if(cond) do { } while (0)
50# define panic_unless(cond) do { } while (0)
54# define panic_impossible() \
55 ::panic ("impossible state reached in file '%s' at line %d", __FILE__, __LINE__)
57# define panic_if(cond) do { if (cond) panic_impossible (); } while (0)
59# define panic_unless(cond) panic_if (! (cond))
OCTAVE_NORETURN void panic(const char *fmt,...)
OCTAVE_NORETURN void vpanic(const char *fmt, va_list args)