Book a Demo

Author Topic: Order of generated C-Code  (Read 3491 times)

Daimonion

  • EA Novice
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Order of generated C-Code
« on: May 29, 2017, 07:04:11 pm »
I'm trying to change the order of my selected c-Code.


As a source i have a class model which is stup with an interface class and inside this several enumerations,interfaces as structs ans interfaces as unions. Every innerClass has the tagged values typedef = true and anonymous = true, so that the generated code is in the style of


Code: [Select]
typedef enum {
...
...
...
} enumname;


typdef struct {
...
...
...
} structname;


typedef union {
...
...
...
} unionname;


The order to arrange this in a .h-file should be like in the code snippet. First the enum, then the struct and as the last one the union, so that an c-Compiler can parse them.


But my EA does not order the inner classes in this way. I got it to manage the order of the struct and the union by moving it up or down in the project browser. but i'm unable to arrange the code that the enumeration is the first one. I can't move it up that high in the project browser.


Is there another or an additional way to arrange the order so that the .h-file is generated correctly?


thanks in advance


Daimonion