Help
Advanced Member level 2
What is the function for this macros below? What's the advantage for this?
How can we add another..
- MYCASE(widget,24);
- MYCASE(widget,35);
- MYCASE(high,168);
and can we add more case in one MYCASE? Can you please rewrite the program and show it?
Thank You.
ThanK You
Code:
#define MYCASE(_item,_id) \
case _id: \
_item##_##_id=_id;\
break
switch(x) {
MYCASE(widget,23);
}
How can we add another..
- MYCASE(widget,24);
- MYCASE(widget,35);
- MYCASE(high,168);
and can we add more case in one MYCASE? Can you please rewrite the program and show it?
Thank You.
ThanK You