Unnecessary typedef in generated code for bus objects

1 次查看(过去 30 天)
Hi all,
I want to generate code for a model. This model contains one bus object named "bdv_MeasAndUsability".
When I generate code (R2012a) for my model, I do not see a struct "bdv_MeasAndUsability" in the generated c code.
Instead I see a typedef to "struct_JYoJISpxnLe7EdSldVmzWE", see below.
Why is there that indirection with the "struct_JYoJISpxnLe7EdSldVmzWE"?
Is it possible to suppress that indirection?
#ifndef _DEFINED_TYPEDEF_FOR_struct_JYoJISpxnLe7EdSldVmzWE_
#define _DEFINED_TYPEDEF_FOR_struct_JYoJISpxnLe7EdSldVmzWE_
typedef struct {
real_T meas;
boolean_T isUsable;
} struct_JYoJISpxnLe7EdSldVmzWE;
#endif
#ifndef _DEFINED_TYPEDEF_FOR_bdv_MeasAndUsability_
#define _DEFINED_TYPEDEF_FOR_bdv_MeasAndUsability_
typedef struct_JYoJISpxnLe7EdSldVmzWE bdv_MeasAndUsability;
#endif

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by