Azzera filtri
Azzera filtri

Header file in private .h

8 visualizzazioni (ultimi 30 giorni)
Rusczak
Rusczak il 24 Ago 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

Risposte (0)

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by