Filter löschen
Filter löschen

Header file in private .h

8 Ansichten (letzte 30 Tage)
Rusczak
Rusczak am 24 Aug. 2017
I have a header where I manually define some variables (data store memories) I import (mpt.signal) to my Simulink model. As those variables must be pointers I cannot declare them as static (file scope) and have to import them from this private header. The problem is, as the variables are declared as "import from file" my private header is #included in the model.h.
Then, when I try to compile the code in my application my variables are public and not private. How can I avoid those #defines avoid reworking the .c and .h after the code gen?
Also, my header is not being called only once, but several times in different headers. Which makes my clean up job more difficult.
Thanks

Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by