Set compiler check: make sure MASTER and SLAVE defines are not set at the same time.
This commit is contained in:
parent
cb403b5dbb
commit
e7538ae5df
@ -56,11 +56,13 @@ hwapi::hwapi(QWidget *parent) : QObject(parent)
|
|||||||
|
|
||||||
myDatif = new T_datif(); // für die CAslave-Lib auskommentieren!
|
myDatif = new T_datif(); // für die CAslave-Lib auskommentieren!
|
||||||
|
|
||||||
#else
|
#endif
|
||||||
|
|
||||||
|
#ifdef THIS_IS_CA_SLAVE
|
||||||
|
|
||||||
#ifdef THIS_IS_CA_MASTER
|
#ifdef THIS_IS_CA_MASTER
|
||||||
#error "MASTER LIB COMPILED INTO MASTER"
|
#error "MASTER LIB COMPILED INTO MASTER"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user