TSDuck v3.38-3744
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsFatal.h File Reference

Handle some fatal situations. More...

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Macros

#define TS_FATAL(literal)
 Abort the application with a fatal error message.
 
#define TS_FATALMSG(literal)   "\n\n*** " literal ", aborting...\n\n"
 Build a string literal for fatal error messages.
 

Functions

void ts::CheckNonNull (const void *ptr)
 Check the value of a pointer and abort the application when zero.
 
void ts::FatalError (const char *message, size_t length)
 Handle a fatal error.
 
void ts::FatalMemoryAllocation ()
 Handle fatal memory allocation failure.
 

Detailed Description

Handle some fatal situations.

Macro Definition Documentation

◆ TS_FATALMSG

#define TS_FATALMSG (   literal)    "\n\n*** " literal ", aborting...\n\n"

Build a string literal for fatal error messages.

Parameters
literal8-bit string literal

◆ TS_FATAL

#define TS_FATAL (   literal)

Abort the application with a fatal error message.

Parameters
literal8-bit string literal error message.
See also
ts::FatalError