Header file in private .h
조회 수: 9 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Naming Conventions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!