Reputation: 5657
I'm working on a native android application which has both .c
and .java
code. And sometimes I want to use the same emumerations so I have both
on native side
enum _enum_1 {
VALUE_1 = 0,
VALUE_2 = 1
};
typedef enum _enum_1 enum_1;
on java side
public enum Enum1 {
VALUE_1,
VALUE_2
}
My question is, is there an abstract language to describe enums/classes/structs which can be used to generate a code for java
and c
languages?
Upvotes: 0
Views: 82