B
Bin Chen
switch(i) {
case 1:
break;
case 2:
break;
[...]
case N:
break;
}
Now, after some time I want to add a 'case 2' between case 1 and case
2, the result means every case number after case 2 need to be
incremented by 1, it there a macro tricks to make life easier? Such
as:
switch(i) {
case AUTO_INC_MACRO:
break;
case AUTO_INC_MACRO:
....
Thanks in advance.
Bin
case 1:
break;
case 2:
break;
[...]
case N:
break;
}
Now, after some time I want to add a 'case 2' between case 1 and case
2, the result means every case number after case 2 need to be
incremented by 1, it there a macro tricks to make life easier? Such
as:
switch(i) {
case AUTO_INC_MACRO:
break;
case AUTO_INC_MACRO:
....
Thanks in advance.
Bin