forked from GerhardHoffmann/DCLibraries
Add COMPILER-CHECKS: datif is only valid inside the master-lib.
This commit is contained in:
parent
9bdc08f6fc
commit
16b6ea8087
@ -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
|
||||
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user