Filter löschen
Filter löschen

Unnecessary typedef in generated code for bus objects

1 Ansicht (letzte 30 Tage)
Till Rahlf
Till Rahlf am 12 Mär. 2014
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

Antworten (0)

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by