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