Redefinition of macro "false" and "true"

5 views (last 30 days)
Rindert Hartman
Rindert Hartman on 29 Jul 2015
Commented: dpb on 29 Jul 2015
Hi
I am facing a small problem with code generation in Simulink for a TI TMS570 device. I am building a library in Simulink that is going to be used by a lot of different users and must therefor be easily distributable. The idea is to have users install the standard TI library for this device and use the Simulink library for model based design projects. The library used by TI however includes a macro to define "true" and "false" the same way Simulink does, resulting in compiler warnings for a redefinition of those macros. Since I would like to keep using the TI library without altering it I was wondering if there is a way to have Simulink not generate these macros and use the declaration from the library of TI.
  1 Comment
dpb
dpb on 29 Jul 2015
Don't have (and have never seen) Simulink but I'd guess only by editing the Simulink definitions.
If it's only a compiler warning and the definitions don't conflict with each other, may just have to live with it and tell your users it's normal behavior.

Sign in to comment.

Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!