Re: [AD] namespace collision

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Laurence Withers wrote:
In reply to George Foot <gfoot@xxxxxxxxxx>:
[snip]
  #define clear(bmp) allegro_clear(bmp)

would not affect structure members:

  struct abc {
     int clear;
  };

  printf("%d\n", offsetof(struct abc, clear));

The printf() statement above would *not* expand to:

  printf("%d\n", offsetof(struct abc, allegro_clear));

This is sort of a problem of it's own. How do you pass function pointers of Allegro functions then, without breaking backward compatibility?


--
- Robert J Ohannessian
"Microsoft code is probably O(n^20)" (my CS prof)
http://pages.infinit.net/voidstar/



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/