TSDuck v3.41-4251
MPEG Transport Stream Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages Concepts
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.