TSDuck Version 3.16-1064 (TSDuck - The MPEG Transport Stream Toolkit)
tsMain.h File Reference

Define a standard main() function with appropriate checks. More...

Macros

#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

◆ TS_MAIN

#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.

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