Header file in private .h

8 次查看(过去 30 天)
Rusczak
Rusczak 2017-8-24
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by