Add COMPILER-CHECKS: datif is only valid inside the master-lib.

This commit is contained in:
Thomas Sax 2023-12-18 10:41:56 +01:00
parent 9bdc08f6fc
commit 16b6ea8087

View File

@ -49,9 +49,19 @@ hwapi::hwapi(QWidget *parent) : QObject(parent)
// {
#ifdef THIS_IS_CA_MASTER
#ifdef THIS_IS_CA_SLAVE
#error "SLAVE LIB COMPILED INTO MASTER"
#endif
myDatif = new T_datif(); // für die CAslave-Lib auskommentieren!
#else
qCritical()<<"hwapi: error CAslave cannot include T_datif";
#ifdef THIS_IS_CA_MASTER
#error "MASTER LIB COMPILED INTO MASTER"
#endif
#endif
// }