hi
i wanted to know how to use enumerated constants. all i know about is:
const tagname: //"tagname:" is optional
{
const_1 = 0,
const_2,
const_3
}
the subsequent constants are automatically assigned as preconstant+1 (const_1 = 0, const_2 = 1, const_3 = 2) but i want to use other increment values. for exapmle
enum tagname (<<=1)
{
const_1 = 1,
const_2,
const_3
}
the subsequent constants are now assigned as preconstant shifted 1 bit left. (const_1 = 0b001, const_2 = 0b010, const_3 = 0b100).
anyone know how to manage that since the "enum" was removed?