Unnecessary typedef in generated code for bus objects
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!