GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
panic.h File Reference
#include "octave-config.h"
#include <cstdarg>

Go to the source code of this file.

Macros

#define panic_if(cond)   do { if (cond) panic_impossible (); } while (0)
 
#define panic_impossible()    ::panic ("impossible state reached in file '%s' at line %d", __FILE__, __LINE__)
 
#define panic_unless(cond)   panic_if (! (cond))
 

Functions

OCTAVE_NORETURN void panic (const char *fmt,...)
 
OCTAVE_NORETURN void vpanic (const char *fmt, va_list args)
 

Macro Definition Documentation

◆ panic_if

#define panic_if (   cond)    do { if (cond) panic_impossible (); } while (0)

Definition at line 57 of file panic.h.

◆ panic_impossible

#define panic_impossible ( )     ::panic ("impossible state reached in file '%s' at line %d", __FILE__, __LINE__)

Definition at line 54 of file panic.h.

◆ panic_unless

#define panic_unless (   cond)    panic_if (! (cond))

Definition at line 59 of file panic.h.

Function Documentation

◆ panic()

OCTAVE_NORETURN void panic ( const char *  fmt,
  ... 
)
extern

Definition at line 45 of file panic.cc.

References vpanic().

Referenced by symbol_table::alias_built_in_function().

◆ vpanic()

OCTAVE_NORETURN void vpanic ( const char *  fmt,
va_list  args 
)
extern

Definition at line 36 of file panic.cc.

Referenced by panic().