crystal-lang / crystal_lib

Automatic binding generator for native libraries in Crystal
138 stars 30 forks source link

Typedef enums are ignored #19

Closed oprypin closed 7 years ago

oprypin commented 8 years ago

This example gives no output during conversion:

typedef enum MyEnum {
    MyA = 0, MyB = 1, MyC = 2
} MyEnum;
oprypin commented 8 years ago

This may be just my misunderstanding. Perhaps _crystallib only exports items relevant to the exported functions? In which case, that may not be such a good idea. The enums are sometimes just sets of constants which are never referenced elsewhere but are needed to use the library.

olbat commented 7 years ago

I think that #37 gives an answer to your question.

mverzilli commented 7 years ago

I agree, closing.