Unnecessary typedef in generated code for bus objects
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!