After being so spoilt by C# and Visual Studio for a few months, I'm back to embedded programming (in C) and using SlickEdit.
I've got a few questions about enumerations and auto list etc.. (SlickEdit 13.0.1.0)
1. typedef of 'enum' directly doesn't auto list.
typedef enum
{
OPTION_1 = 0x01,
OPTION_2 = 0x02
}te_My_Enum;
When I use the type in some code..
te_My_Enum e_Var =
No auto list appears..
If I change the enum definition to
enum te_My_Enum_Enumeration
{
OPTION_1 = 0x01,
OPTION_2 = 0x02
};
typedef enum te_My_Enum_Enumeration te_My_Enum;
then
te_My_Enum e_Var =
Will bring up the list of enum values.
2. Auto List enum param.
if I declare a parameter as an enum, when I call that function, is there anyway to get SlickEdit to autolist the enum values ?
e.g.
enum te_My_Enum
{
OPTION_1,
OPTION_2
};
void func(enum te_My_Enum e_Value);
...
{
func([In an ideal world Autolist enum values here])
}