TSDuck Version 3.20-1615 (TSDuck - The MPEG Transport Stream Toolkit)
tsMain.h File Reference


#define TS_MAIN(func)
 A macro which expands to a main() program. More...

Detailed Description

Define a standard main() function with appropriate checks.

Macro Definition Documentation


#define TS_MAIN (   func)

A macro which expands to a main() program.

Uncaught exceptions are displayed.

On Windows, the IP networking is initialized and the version of the tsduck DLL is checked. It has been noted that using a tsduck DLL with an incompatible version makes the application silently exit on Windows. This is why we check the version of the DLL.

funcThe actual main function with the same profile as main().