#defines Should not be used in the c code blocks used to generate model code.
One area where this looks like an issue is in the x2isietmx
model (Probably an issue in other places too).
It uses the ODC_LATCH
and ODC_ADD_PARITY_INT
c blocks.
/opt/rtcds/userapps/release/cds/common/src/ODC_LATCH.c
/opt/rtcds/userapps/release/cds/common/src/ODC_ADD_PARITY_INT.c
They both define MAX_BITS
and #define
s are not scoped so it gets redefined during x2isietmx's build.