Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macros Are Evil
08-29-2015, 03:12 AM, (This post was last modified: 08-29-2015, 03:14 AM by CrystalH.)
#5
RE: Macros Are Evil
Another one of my favourites is when you e.g.:
Code:
    int i=0;
    #define aa(a)  if (a) {  ++i;  }
    if (1)
      aa(i);
    else
      aa(i);
and then get an else without matching if, since you can't put ; after aa.
Reply


Messages In This Thread
Macros Are Evil - by NaN - 08-28-2015, 10:21 AM
RE: Macros Are Evil - by CrystalH - 08-28-2015, 10:31 AM
RE: Macros Are Evil - by NaN - 08-28-2015, 10:56 AM
RE: Macros Are Evil - by CrystalH - 08-28-2015, 11:41 AM
RE: Macros Are Evil - by CrystalH - 08-29-2015, 03:12 AM
RE: Macros Are Evil - by NaN - 08-29-2015, 09:23 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)