Re: namespace collision (was: multithreaded callbacks (was Re: [AD] de fourium pointium ohium))

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


Laurence Withers <lwithers@xxxxxxxxxx> writes:

> In reply to Bob <ohannessian@xxxxxxxxxx>:
> >Perhaps this could be done for the whole API. There would be a a #define =
> =20
> >(#define ALLEGRO_API ?) that would prefix all the Allegro functions and=20
> >variables with allegro_.
> >A note could then be placed in the FAQ about what to do in case there is a=
> =20
> >namespace collision.
> 
> We could also provide an "allegro4.h" header file, which would simply
> be:
> 
> #define ALLEGRO_NAMESPACE
> #include "allegro.h"

Maybe it would be better to convert all Allegro-defined symbols to
prefixed ones and include compatibility header which can be used with
old projects.  Also it is possible to provide script to convert
symbols in a file to the new style.  Or maybe keep both styles for
some time and later move compatibility defines to another header
file or remove them altogether.

-- 
Michael Bukin






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