How do I prepend a variable declaration with a qualifier in my generated code?
显示 更早的评论
I am generating C code and I want to add a macro before the variable declarations.
Currently, my generated code looks as follows:
/* Exported block parameters */
float32 variableName = 0.5F; /* Variable: variableName
* Referenced by: '<S5>/Constant1'
*/
I want to add a macro, which is defined in an external header file such that my generated code is as follows:
/* Exported block parameters */macro float32 variableName= 0.5F; /* Variable: variableName
* Referenced by: '<S5>/Constant1'
*/
How do I do this?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Modeling Patterns for C Code Constructs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

