ocaml-attic / ocaml-cstruct

Map OCaml arrays onto C-like structs via a syntax extension, and generate functions to convert to-and-from native OCaml values.
http://www.openmirage.org/
10 stars 2 forks source link

cenum doesnt preserve sequence after a constant constructor #10

Closed avsm closed 11 years ago

avsm commented 11 years ago
cenum bar16 {
  ONE = 1;
  TWO;
  FOUR = 4;
  FIVE
} as uint16_t

This should have values 1,2,4,5 but currently is 1,0,4,1