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

Namespaces

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

Macros

#define TS_FATAL(literal)
#define TS_FATALMSG(literal)

Functions

void ts::FatalError (const char *message, size_t length)

Detailed Description

Handle some fatal situations.

Important: By default, without specific "nothrow" form of allocator, the operator "new" and std::make_shared() never return a null pointer. They throw std::bad_alloc in case of allocation failure. Therefore, it is useless to test such new pointers for a null value and trigger a fatal error.