Borrar filtros
Borrar filtros

Header file in private .h

8 visualizaciones (últimos 30 días)
Rusczak
Rusczak el 24 de Ag. de 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

Respuestas (0)

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by