Unnecessary typedef in generated code for bus objects

2 views (last 30 days)
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

Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!