![]() |
TSDuck v3.40-4163
MPEG Transport Stream Toolkit
|
Version of the libtsduck library. More...
Macros | |
#define | TS_LIBTSDUCK_CHECK() |
A macro to use in application code to enforce the TSDuck library version. | |
Variables | |
const int | LIBTSDUCK_VERSION_SYMBOL |
Full version of the TSDuck library in the name of a symbol from the library. | |
const int | tsduckLibraryVersionCommit |
Commit version of the TSDuck library as the int value of a symbol from the library. | |
const int | tsduckLibraryVersionMajor |
Major version of the TSDuck library as the int value of a symbol from the library. | |
const int | tsduckLibraryVersionMinor |
Minor version of the TSDuck library as the int value of a symbol from the library. | |
Version of the libtsduck library.
#define TS_LIBTSDUCK_CHECK | ( | ) |
A macro to use in application code to enforce the TSDuck library version.
When this macro is used in an executable or shared library which uses the TSDuck library, it generates an external reference to a symbol name which contains the TSDuck library version number, at the time of the compilation of the application code. If the application is run later on a system with a TSDuck library with a different version, the reference won't be resolved and the application won't run.
If we don't do this, the initialization of application automatically calls complex "Register" constructors in the TSDuck library which may fail if the version of the library is different.
|
extern |
Full version of the TSDuck library in the name of a symbol from the library.
Same principle as LIBTSCORE_VERSION_SYMBOL