From 16b6ea8087ec38533fb836c989781cfeab6bea6f Mon Sep 17 00:00:00 2001 From: Thomas Sax Date: Mon, 18 Dec 2023 10:41:56 +0100 Subject: [PATCH] Add COMPILER-CHECKS: datif is only valid inside the master-lib. --- src/hwapi.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/hwapi.cpp b/src/hwapi.cpp index 8ea004e..e97d6ce 100644 --- a/src/hwapi.cpp +++ b/src/hwapi.cpp @@ -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 // }