Re: [AD] Proposal for new Allegro interface |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
In reply to Javier González <xaviergonz@xxxxxxxxxx>: >Yes, because it is not a macro > >but then try >void other_clear(void) { >} > >#define clear() other_clear() > >#include <list> > > void test(std::list<int>& l) >{ > l.clear(); >} You missed the point :-) Preprocessor defines are only used for variables; static (and possibly inline) functions are used for renaming functions (and these don't break member functions, of course). Bye for now, -- Laurence Withers, lwithers@xxxxxxxxxx http://www.lwithers.demon.co.uk/
Attachment:
signature.asc
Description: PGP signature
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |