Why was 2's complement and RTWTYPES_ID guards removed from ERT code in 2013B?

1 view (last 30 days)
Prior to 21013B rtwtypes.h included compiler snippets that would cause compile time errors if code used had been generated with different type definitions (RTWTYPES_ID) and checked that the compiled code supported correct 2's complement operation.
#if ((SCHAR_MIN + 1) != -SCHAR_MAX)
#error "This code must be compiled using a 2's complement representation for signed integer values"
#endif
These seemed to be reasonable and useful checks - why were they removed from the code generated in 2103B and forward?

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!