How to prevent compilation of unused imported node code?
When a C source file is associated to an imported operator, it is compiled even if this operator is not used. If this operator uses a type which is also not generated (not used in the SCADE model), then the C compiler stops with an error during the compilation of this C file. Since SCADE 5.0.1, o avoid such behaviour, the user should #include “macro.h” in each source file and encapsulate the C function by: #ifdef m_ …. #endif With SCADE 5.0.1, the macro.h file is always generated, without #include “macro_default.h” if this file does not exist. This #ifdef avoids compilation of unused imported node code and the C code will always compile.